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();