Browse Source

update sql

oubo 5 years ago
parent
commit
32b37987b7
1 changed files with 3 additions and 0 deletions
  1. 3 0
      data/upgrade/v3.0.0/v3.0.0.sql

+ 3 - 0
data/upgrade/v3.0.0/v3.0.0.sql

@@ -152,4 +152,7 @@ ADD COLUMN IF NOT EXISTS `inventory_price_unit`  tinyint(1) NULL AFTER `utime`;
 ALTER TABLE `t_statement_calculation`
 ADD COLUMN IF NOT EXISTS `bill_ids` text NULL AFTER `tag_numbers`;
 
+ALTER TABLE `t_tag_list_rel`
+ADD COLUMN IF NOT EXISTS `ctime` datetime(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP AFTER `tag_id`;
+
 SET FOREIGN_KEY_CHECKS=1;