Changeset 1072 for trunk


Ignore:
Timestamp:
12/13/09 13:00:31 (2 years ago)
Author:
bogdan2412
Message:

Fixed task-tags migration script to add proper unique index.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/migrate-task-tags

    r1069 r1072  
    77db_query(" 
    88    ALTER TABLE `ia_tags` 
    9     ADD COLUMN `type` ENUM('author','contest','year','round','age_group','method','algorithm','tag') NOT NULL 
     9    ADD COLUMN `type` ENUM('author','contest','year','round','age_group','method','algorithm','tag') NOT NULL, 
     10    DROP INDEX `name`, 
     11    ADD UNIQUE INDEX `name_type` USING BTREE(`name`, `type`) 
    1012"); 
    1113db_query('UPDATE `ia_tags` SET `type` = "tag"'); 
Note: See TracChangeset for help on using the changeset viewer.