From 8879ea09f22d9388ba553976334f9d63d34aafc2 Mon Sep 17 00:00:00 2001 From: tg130 Date: Sat, 10 Aug 2024 13:06:47 +0800 Subject: [PATCH] ufutx_s2_user_data --- 1723266104_create_ufutx_s2_user_data.up.sql | 11 +---------- 1723266388_change_ufutx_s2_user_data.up.sql | 8 ++++++++ 2 files changed, 9 insertions(+), 10 deletions(-) create mode 100644 1723266388_change_ufutx_s2_user_data.up.sql diff --git a/1723266104_create_ufutx_s2_user_data.up.sql b/1723266104_create_ufutx_s2_user_data.up.sql index 2a57697..6d96760 100644 --- a/1723266104_create_ufutx_s2_user_data.up.sql +++ b/1723266104_create_ufutx_s2_user_data.up.sql @@ -14,13 +14,4 @@ CREATE TABLE `ufutx_s2_user_data` ( `superior_reason` varchar(512) DEFAULT NULL COMMENT '关联原因', `created_at` timestamp NOT NULL, `updated_at` timestamp NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户身份及推荐人关系表'; - -ALTER TABLE `ufutx_s2_user_data` - ADD PRIMARY KEY (`id`), - ADD UNIQUE KEY `mobile` (`mobile`), - ADD UNIQUE KEY `area_code2` (`area_code2`), - ADD UNIQUE KEY `mobile2` (`mobile2`), - ADD UNIQUE KEY `mobile3` (`mobile3`), - ADD KEY `area_code` (`area_code`), - ADD KEY `area_code3` (`area_code3`); \ No newline at end of file +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户身份及推荐人关系表'; \ No newline at end of file diff --git a/1723266388_change_ufutx_s2_user_data.up.sql b/1723266388_change_ufutx_s2_user_data.up.sql new file mode 100644 index 0000000..957036e --- /dev/null +++ b/1723266388_change_ufutx_s2_user_data.up.sql @@ -0,0 +1,8 @@ +ALTER TABLE `ufutx_s2_user_data` + ADD PRIMARY KEY (`id`), + ADD UNIQUE KEY `mobile` (`mobile`), + ADD UNIQUE KEY `area_code2` (`area_code2`), + ADD UNIQUE KEY `mobile2` (`mobile2`), + ADD UNIQUE KEY `mobile3` (`mobile3`), + ADD KEY `area_code` (`area_code`), + ADD KEY `area_code3` (`area_code3`); \ No newline at end of file