去除多余数据库脚本

This commit is contained in:
lin
2025-06-03 16:53:36 +08:00
parent f4bbca78e5
commit e3f880627e
2 changed files with 0 additions and 23 deletions

View File

@@ -1,18 +0,0 @@
/*
* 20250519
*/
DELIMITER // -- 重定义分隔符避免分号冲突
CREATE PROCEDURE `wvp_20250519`()
BEGIN
IF NOT EXISTS (SELECT column_name FROM information_schema.columns
WHERE TABLE_SCHEMA = (SELECT DATABASE()) and table_name = 'wvp_device' and column_name = 'device_type')
THEN
ALTER TABLE wvp_device ADD device_type integer;
END IF;
END; //
call wvp_20250519();
DROP PROCEDURE wvp_20250519;
DELIMITER ;

View File

@@ -1,5 +0,0 @@
/*
* 20250519
*/
ALTER TABLE wvp_device ADD COLUMN IF NOT EXISTS device_type integer;