forked from science-ation/science-ation
125437dd55
'self_nominate', and 'schedule_judges'. - self_nominate defaults to 'yes' for all new and existing awards. If turned off, the award will not appear in the student self-nomination pages. - schedule_judges specifies whether an award should have judges or not, we have some special awards that students can nominate for but do not require judges to find the winner. Similarly we have some awards students cannot nominate for but do require judges to determine a winner. This allows both cases to be handled.
7 lines
332 B
SQL
7 lines
332 B
SQL
ALTER TABLE `award_awards` ADD `self_nominate` ENUM('yes', 'no') NOT NULL DEFAULT 'yes' AFTER `cwsfaward` ;
|
|
ALTER TABLE `award_awards` ADD `schedule_judges` ENUM('yes', 'no') NOT NULL DEFAULT 'yes' AFTER `self_nominate` ;
|
|
|
|
UPDATE award_awards SET self_nominate='yes' WHERE 1;
|
|
UPDATE award_awards SET schedule_judges='yes' WHERE 1;
|
|
|