style(web): disable hack by default

Users rarely use hack, but it is enabled by default.
They need to disable it manually, and there are also many people do not now why should disable it.
Make the hack function disabled when creating a new problem.
This commit is contained in:
Masco Skray 2019-06-14 23:41:40 +08:00
parent 96d4a3ecf7
commit c603c41e00

View File

@ -256,7 +256,7 @@ CREATE TABLE IF NOT EXISTS `problems` (
`title` text NOT NULL,
`is_hidden` tinyint(1) NOT NULL DEFAULT '0',
`submission_requirement` text,
`hackable` tinyint(1) NOT NULL DEFAULT '1',
`hackable` tinyint(1) NOT NULL DEFAULT '0',
`extra_config` varchar(500) NOT NULL DEFAULT '{"view_content_type":"ALL","view_details_type":"ALL"}',
`zan` int(11) NOT NULL,
`ac_num` int(11) NOT NULL DEFAULT '0',