style(web): merge contests_asks table into main sql file

The web interface is merged but the table is not.
Merge it into a single SQL file, without execute PHP.
Redumped database structure with mysqldump command.
This commit is contained in:
Masco Skray 2019-07-10 11:04:51 +08:00
parent 50f26075ac
commit f72d0fda6c
5 changed files with 467 additions and 382 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1 +0,0 @@
alter table contests_asks drop column is_hidden;

View File

@ -1,9 +0,0 @@
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;

View File

@ -1 +0,0 @@
drop table `contests_asks`;

View File

@ -1 +0,0 @@
alter table contests_asks add is_hidden boolean default false;