update.sql 1.0 KB

12345678910111213141516171819202122232425
  1. -- v1.0.2 sql更新
  2. insert into t_system_property(org_id, prop_key, prop_value, create_time, update_time)
  3. values (1, 'APPLY_SWITCH', '1', unix_timestamp() * 1000, unix_timestamp() * 1000);
  4. CREATE TABLE `t_time_period_exam_room`
  5. (
  6. `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键',
  7. `create_time` bigint NOT NULL COMMENT '创建时间',
  8. `update_time` bigint NOT NULL COMMENT '更新时间',
  9. `exam_room_id` bigint NOT NULL COMMENT '考场ID',
  10. `time_period_id` bigint NOT NULL COMMENT '预约时段ID',
  11. `enable` bit(1) NULL DEFAULT NULL COMMENT '是否开启',
  12. `operate_id` bigint NULL DEFAULT NULL COMMENT '操作人',
  13. PRIMARY KEY (`id`) USING BTREE,
  14. UNIQUE INDEX `IDX_01` (`exam_room_id`, `time_period_id`) USING BTREE,
  15. INDEX `IDX_02` (`exam_room_id`) USING BTREE
  16. ) COMMENT = '考场开启时段表';
  17. update t_student set open_id = null, uid = null;
  18. drop index IDX_02 on t_student;
  19. alter table t_student ADD UNIQUE INDEX IDX_02 (`apply_task_id`, `open_id` );