share-platform/config/db/V4.7__resource_add_col.sql

7 lines
219 B
SQL

ALTER TABLE `tb_data_resource`
ADD COLUMN `pin_top` int NULL COMMENT '是否置顶' ,
ADD COLUMN `pin_top_time` datetime NULL COMMENT '置顶操作时间';
UPDATE tb_data_resource
SET pin_top = 0,
pin_top_time = NOW();