science-ation/db/db.update.6.sql
james a947ff8e85 Whew! Add a new interface to link judging teams with the awards that they are
judging for.  Can now auto-create judging teams based on awards list (one team per award).

db bumped to v6

moved judges_teams to judges_teams_members
judges_teams is now the new interface
2005-05-06 16:13:37 +00:00

10 lines
383 B
SQL

CREATE TABLE `judges_teams_awards_link` (
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT ,
`award_awards_id` INT UNSIGNED NOT NULL ,
`judges_teams_id` INT UNSIGNED NOT NULL ,
`year` INT NOT NULL ,
PRIMARY KEY ( `id` )
);
ALTER TABLE judges_teams_awards_link ADD UNIQUE (award_awards_id,judges_teams_id,year);
ALTER TABLE `judges_teams` CHANGE `name` `name` VARCHAR( 255 ) NOT NULL;