From 109527651746144fc64a25fd811be440f3c3f8a8 Mon Sep 17 00:00:00 2001 From: huangweixiong Date: Wed, 13 Jul 2022 15:26:13 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8D=95=E8=B4=A6=E5=8F=B7=E5=A4=9A?= =?UTF-8?q?=E5=9C=B0=E7=99=BB=E5=BD=95=E3=80=91=E7=B4=A2=E5=BC=95=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E8=84=9A=E6=9C=AC=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/db/V3.6__sys_user_token_drop_index.sql | 24 +------------------ 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/config/db/V3.6__sys_user_token_drop_index.sql b/config/db/V3.6__sys_user_token_drop_index.sql index 91682ede..0d257821 100644 --- a/config/db/V3.6__sys_user_token_drop_index.sql +++ b/config/db/V3.6__sys_user_token_drop_index.sql @@ -1,23 +1 @@ -DROP PROCEDURE IF EXISTS del_idx; - -create procedure del_idx(IN p_tablename varchar(200), IN p_idxname VARCHAR(200)) - -begin - -DECLARE str VARCHAR(250); - -set @str=concat(' drop index ',p_idxname,' on ',p_tablename); - -select count(*) into @cnt from information_schema.statistics where table_name=p_tablename and index_name=p_idxname ; - -if @cnt >0 then - -PREPARE stmt FROM @str; - -EXECUTE stmt ; - -end if; - -end ; - -call del_idx('sys_user_token','user_id'); \ No newline at end of file +DROP INDEX user_id ON sys_user_token; \ No newline at end of file