23 lines
1.8 KiB
SQL
23 lines
1.8 KiB
SQL
CREATE TABLE `glcc_settings` (
|
||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||
`name` varchar(255) NOT NULL DEFAULT '',
|
||
`value` text,
|
||
`round` tinyint(4) NOT NULL DEFAULT 1 comment '轮数:完整的GLCC活动算一轮',
|
||
`updated_on` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
|
||
PRIMARY KEY (`id`),
|
||
UNIQUE KEY `UNIQUE_on_name` (`name`),
|
||
KEY `index_settings_on_name` (`name`)
|
||
) ENGINE=InnoDB DEFAULT CHARSET=utf8
|
||
|
||
alter table `glcc_registration_information` add `round` tinyint(4) not null default 1 comment '轮数:完整的一次GLCC活动算一轮';
|
||
alter table `glcc_medium_term_examine_material` add `round` tinyint(4) not null default 1 comment '轮数:完整的一次GLCC活动算一轮';
|
||
alter table `glcc_registration_student` add `round` tinyint(4) not null default 1 comment '轮数:完整的一次GLCC活动算一轮';
|
||
alter table `glcc_registration_student_task` add `round` tinyint(4) not null default 1 comment '轮数:完整的一次GLCC活动算一轮';
|
||
alter table `glcc_registration_task` add `round` tinyint(4) not null default 1 comment '轮数:完整的一次GLCC活动算一轮';
|
||
alter table `glcc_tutor_evaluation` add `round` tinyint(4) not null default 1 comment '轮数:完整的一次GLCC活动算一轮';
|
||
|
||
|
||
ALTER TABLE glcc_registration_information CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||
ALTER TABLE glcc_registration_task CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||
|
||
ALTER TABLE `glcc_registration_task` ADD COLUMN `check_status` tinyint(1) DEFAULT 0 COMMENT '是否审核通过' AFTER `round`; |