瀏覽代碼

update sql

oubo 5 年之前
父節點
當前提交
a18ffe3d04
共有 3 個文件被更改,包括 7 次插入1 次删除
  1. 1 1
      data/sql/structure.sql
  2. 3 0
      data/upgrade/v2.0.0/v2.0.0.sql
  3. 3 0
      data/upgrade/v3.0.0/v3.0.0.sql

+ 1 - 1
data/sql/structure.sql

@@ -548,7 +548,6 @@ CREATE TABLE `t_documentary`  (
   `documentary_state` tinyint(1) NULL DEFAULT 0,
   `data_id` varchar(25) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT '',
   `companyId` int(11) NULL DEFAULT NULL,
-
   `user_id` int(11) NULL DEFAULT NULL,
   `ctime` datetime(0) NULL DEFAULT NULL,
   `utime` datetime(0) NULL DEFAULT NULL,
@@ -1802,6 +1801,7 @@ CREATE TABLE `t_user_reminder` (
   `documentary_new_affair_join_reminder`  tinyint(1) NULL DEFAULT 0,
   `product_image_shear`  tinyint(1) NULL DEFAULT 0,
   `documentary_copy_order`  tinyint(1) NULL DEFAULT 0,
+  `customer_tag_reminder` tinyint(1) NULL DEFAULT 0,
   PRIMARY KEY (`user_id`),
   UNIQUE KEY `user_id` (`user_id`) USING BTREE
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=COMPACT;

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

@@ -281,4 +281,7 @@ REPLACE INTO `t_affair_system_column`(`column_id`, `column_pid`, `group_id`, `co
 
 REPLACE INTO `t_affair_system_column`(`column_id`, `column_pid`, `group_id`, `column_order`, `column_title`, `column_name`, `column_unit`, `column_type`, `column_control`, `column_rule`, `column_is_virtual`, `column_unit_symbiosis`, `column_detachable`, `status`) VALUES (338, 0, 6, 10, '同步数量', 'synchronous_quantity', '[{\"key\":\"kg\",\"value\":\"公斤\"},{\"key\":\"yard\",\"value\":\"码\"},{\"key\":\"kg/yard\",\"value\":\"公斤/码\"},{\"key\":\"one\",\"value\":\"条\"},{\"key\":\"m\",\"value\":\"米\"},{\"key\":\"slice\",\"value\":\"片\"}]', '', 13, '{\"regex\":\"\",\"tips\":\"[公斤/码]时应如5.11/6.22\"}', 0, '', 1, NULL);
 
+ALTER TABLE `t_user_reminder`
+ADD COLUMN IF NOT EXISTS `customer_tag_reminder` tinyint(1) NULL DEFAULT 0 AFTER `documentary_copy_order`;
+
 SET FOREIGN_KEY_CHECKS=1;

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

@@ -694,4 +694,7 @@ REPLACE INTO `t_affair_system_column` (`column_id`, `column_pid`, `group_id`, `c
 ALTER TABLE `t_documentary` MODIFY COLUMN IF EXISTS`documentary_number_pid`  varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' AFTER `documentary_number`;
 ALTER TABLE `t_documentary` DROP INDEX `documentary_number` , ADD UNIQUE INDEX `documentary_number` (`documentary_number_pid`, `documentary_number`) USING BTREE;
 ALTER TABLE `t_documentary` ADD INDEX (`documentary_number_pid`, `documentary_state`) ;
+ALTER TABLE `t_user_reminder`
+ADD COLUMN IF NOT EXISTS `customer_tag_reminder` tinyint(1) NULL DEFAULT 0 AFTER `documentary_copy_order`;
+
 SET FOREIGN_KEY_CHECKS=1;