science-ation/db/db.update.185.sql
jacob 7e749f0295 Added conferences_id to the so_teams table and updated corresponding code accordingly
Partially implemented student manager under school dashboard for science olypmics
2010-06-16 15:16:25 +00:00

17 lines
567 B
SQL

CREATE TABLE `users_student` (
`users_uid` INT NOT NULL ,
`schools_id` INT NOT NULL ,
`students_active` ENUM( 'yes', 'no' ) NULL ,
`students_complete` ENUM( 'yes', 'no' ) NULL ,
`grade` INT NULL ,
PRIMARY KEY ( `users_uid` )
) ENGINE = MYISAM CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE TABLE `users_conferences_link` (
`users_uid` INT NOT NULL ,
`conferences_id` INT NOT NULL ,
PRIMARY KEY ( `users_uid` , `conferences_id` )
) ENGINE = MYISAM CHARACTER SET utf8 COLLATE utf8_general_ci;
ALTER TABLE `so_teams` ADD `conferences_id` INT NOT NULL AFTER `id`;