science-ation/db/db.update.8.php

13 lines
712 B
PHP
Raw Normal View History

ALTER TABLE `award_types` CHANGE `id` `id` INT( 10 ) UNSIGNED NOT NULL;
ALTER TABLE `award_types` ADD UNIQUE ( id, year );
INSERT INTO `award_types` VALUES (1, 'Divisional', 1, -1);
INSERT INTO `award_types` VALUES (2, 'Special', 2, -1);
INSERT INTO `award_types` VALUES (3, 'Interdisciplinary', 3, -1);
INSERT INTO `award_types` VALUES (4, 'Grand', 5, -1);
INSERT INTO `award_types` VALUES (5, 'Other', 4, -1);
INSERT INTO `award_types` VALUES (1, 'Divisional', 1, 2006);
INSERT INTO `award_types` VALUES (2, 'Special', 2, 2006);
INSERT INTO `award_types` VALUES (3, 'Interdisciplinary', 3, 2006);
INSERT INTO `award_types` VALUES (4, 'Grand', 5, 2006);
INSERT INTO `award_types` VALUES (5, 'Other', 4, 2006);