[xingyu.guo] feat: 1.增加逻辑删除符 2. 移除字段“学习材料的存储URL”

This commit is contained in:
guo
2025-06-28 21:08:33 +08:00
parent eb51dbe87f
commit 765e220b30
3 changed files with 33 additions and 0 deletions
@@ -2,6 +2,7 @@ package com.guo.learningprogresstracker.entity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import java.time.LocalDateTime;
@@ -26,4 +27,7 @@ public class BaseEntity {
@TableField(fill = FieldFill.INSERT_UPDATE)
private String deviceInfo;
@TableLogic
private Integer deleted;
}
@@ -0,0 +1,2 @@
alter table tasks
modify material_url varchar(255) null comment '学习材料的存储URL' COMMENT '上次该任务学习情况' after calculated_priority;
@@ -0,0 +1,27 @@
alter table flyway_schema_history
add deleted int default 0 not null comment '逻辑删除符';
alter table study_expectations
add deleted int default 0 not null comment '逻辑删除符';
alter table study_report_fragments
add deleted int default 0 not null comment '逻辑删除符';
alter table study_reports
add deleted int default 0 not null comment '逻辑删除符';
alter table study_sessions
add deleted int default 0 not null comment '逻辑删除符';
alter table tasks
add deleted int default 0 not null comment '逻辑删除符';
alter table test_table
add deleted int default 0 not null comment '逻辑删除符';
alter table user
add deleted int default 0 not null comment '逻辑删除符';
alter table user_task
add deleted int default 0 not null comment '逻辑删除符';