forked from science-ation/science-ation
- Add db stuff for 'fairs'
This commit is contained in:
parent
9fffa6755d
commit
659dba8321
@ -1 +1 @@
|
||||
76
|
||||
77
|
||||
|
14
db/db.update.77.sql
Normal file
14
db/db.update.77.sql
Normal file
@ -0,0 +1,14 @@
|
||||
CREATE TABLE `fairs` (
|
||||
`id` int(11) NOT NULL default '0',
|
||||
`fairname` varchar(64) NOT NULL default '0',
|
||||
PRIMARY KEY (`fairs_id`)
|
||||
) TYPE=MyISAM;
|
||||
|
||||
CREATE TABLE `users_fair` (
|
||||
`users_id` int(11) NOT NULL default '0',
|
||||
`fairs_id` int(11) NOT NULL default '0',
|
||||
PRIMARY KEY (`users_id`)
|
||||
) TYPE=MyISAM;
|
||||
|
||||
ALTER TABLE `users` CHANGE `types` `types` SET( 'student', 'judge', 'committee', 'volunteer', 'fair' ) NOT NULL ;
|
||||
|
Loading…
Reference in New Issue
Block a user