From ed2390e4ad98c2ec7914e4b56d5792c3b8b29c39 Mon Sep 17 00:00:00 2001 From: marsal Date: Mon, 6 Jul 2026 18:23:00 +0800 Subject: [PATCH] fix(db): add deleted column to mci_platform_role --- .../src/main/resources/db/migration/V1__init_account.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/mci-server/src/main/resources/db/migration/V1__init_account.sql b/backend/mci-server/src/main/resources/db/migration/V1__init_account.sql index 72edfb2..36f130c 100644 --- a/backend/mci-server/src/main/resources/db/migration/V1__init_account.sql +++ b/backend/mci-server/src/main/resources/db/migration/V1__init_account.sql @@ -17,7 +17,8 @@ CREATE TABLE IF NOT EXISTS mci_platform_role ( permissions JSON COMMENT '权限列表', status TINYINT NOT NULL DEFAULT 1, create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP + update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + deleted TINYINT NOT NULL DEFAULT 0 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='平台角色表'; CREATE TABLE IF NOT EXISTS mci_user (