diff options
Diffstat (limited to 'install')
-rw-r--r-- | install/database.sql | 1 | ||||
-rw-r--r-- | install/update.php | 8 |
2 files changed, 7 insertions, 2 deletions
diff --git a/install/database.sql b/install/database.sql index c8b9d4867..914add2d8 100644 --- a/install/database.sql +++ b/install/database.sql @@ -224,7 +224,6 @@ CREATE TABLE IF NOT EXISTS `event` ( `uid` int(11) NOT NULL, `event_xchan` char(255) NOT NULL DEFAULT '', `event_hash` char(255) NOT NULL DEFAULT '', - `message_id` char(255) NOT NULL, `created` datetime NOT NULL, `edited` datetime NOT NULL, `start` datetime NOT NULL, diff --git a/install/update.php b/install/update.php index 5479f1e26..a6fecbef5 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1019 ); +define( 'UPDATE_VERSION' , 1020 ); /** * @@ -279,3 +279,9 @@ ADD INDEX ( `event_hash` )"); } +function update_r1019() { + $r = q"ALTER TABLE `event` DROP `message_id` "); + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} |