diff options
Diffstat (limited to 'engine/schema')
-rw-r--r-- | engine/schema/mysql.sql | 2 | ||||
-rw-r--r-- | engine/schema/upgrades/2009091901.sql | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/engine/schema/mysql.sql b/engine/schema/mysql.sql index ce6e7b7a1..dd5d43592 100644 --- a/engine/schema/mysql.sql +++ b/engine/schema/mysql.sql @@ -357,6 +357,7 @@ CREATE TABLE `prefix_system_log` ( `view` TEXT NOT NULL ,
`subject_guid` INT NOT NULL ,
`object_guid` INT NOT NULL ,
+ `annotation_id` int(11) NOT NULL,
`posted` INT NOT NULL ,
PRIMARY KEY ( `id` ) ,
KEY `type` (`type`),
@@ -364,5 +365,6 @@ CREATE TABLE `prefix_system_log` ( KEY `access_id` (`access_id`),
KEY `subject_guid` (`subject_guid`),
KEY `object_guid` (`object_guid`),
+ KEY `annotation_id` (`annotation_id`),
KEY `posted` (`posted`)
) ENGINE = MYISAM DEFAULT CHARSET=utf8; diff --git a/engine/schema/upgrades/2009091901.sql b/engine/schema/upgrades/2009091901.sql index 7182c7f76..074d042c3 100644 --- a/engine/schema/upgrades/2009091901.sql +++ b/engine/schema/upgrades/2009091901.sql @@ -1,2 +1,3 @@ -- add an additional column to the river table
-ALTER TABLE `prefix_river` ADD COLUMN `annotation_id` int(11) NOT NULL AFTER `posted`;
\ No newline at end of file +ALTER TABLE `prefix_river` ADD COLUMN `annotation_id` int(11) NOT NULL AFTER `object_guid`;
+ALTER TABLE `prefix_river` ADD KEY `annotation_id` (`annotation_id`);
\ No newline at end of file |