S2OJ/uoj/1/app/upgrade/1_create_table_asks/up.sql
vfleaking 4d2b0735dc update: fetch commits from upstream
Update from vfleaking/uoj upstream, commit aa8a85c - 9f1302c.
Because of this repo's modify, also with the adaption of community version.
2018-09-20 19:34:38 +08:00

10 lines
323 B
SQL

CREATE TABLE IF NOT EXISTS `contests_asks` (
`id` int(11) NOT NULL primary key AUTO_INCREMENT,
`contest_id` int(11) NOT NULL,
`username` varchar(20) NOT NULL,
`question` text NOT NULL,
`answer` text NOT NULL,
`post_time` datetime NOT NULL,
`reply_time` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;