diff --git a/mateclaw-server/src/main/resources/db/migration/h2/V9__hook_system.sql b/mateclaw-server/src/main/resources/db/migration/h2/V10__hook_system.sql similarity index 93% rename from mateclaw-server/src/main/resources/db/migration/h2/V9__hook_system.sql rename to mateclaw-server/src/main/resources/db/migration/h2/V10__hook_system.sql index d85206b5..84c40008 100644 --- a/mateclaw-server/src/main/resources/db/migration/h2/V9__hook_system.sql +++ b/mateclaw-server/src/main/resources/db/migration/h2/V10__hook_system.sql @@ -1,6 +1,7 @@ --- V9: RFC-017 声明式 Hook 系统 +-- V10: 声明式 Hook 系统 -- mate_hook hook 定义(YAML 文件或 UI 写入) -- mate_hook_run hook 触发审计(可选,按 mateclaw.hooks.audit.enabled 开关) +-- (原本命名为 V9 但与 V9__usage_cache_tokens.sql 撞号;重命名为 V10 以共存) CREATE TABLE IF NOT EXISTS mate_hook ( id BIGINT NOT NULL PRIMARY KEY, diff --git a/mateclaw-server/src/main/resources/db/migration/mysql/V9__hook_system.sql b/mateclaw-server/src/main/resources/db/migration/mysql/V10__hook_system.sql similarity index 91% rename from mateclaw-server/src/main/resources/db/migration/mysql/V9__hook_system.sql rename to mateclaw-server/src/main/resources/db/migration/mysql/V10__hook_system.sql index 389cbdd0..92d86448 100644 --- a/mateclaw-server/src/main/resources/db/migration/mysql/V9__hook_system.sql +++ b/mateclaw-server/src/main/resources/db/migration/mysql/V10__hook_system.sql @@ -1,6 +1,7 @@ --- V9: RFC-017 声明式 Hook 系统 +-- V10: 声明式 Hook 系统 -- mate_hook hook 定义(YAML 文件或 UI 写入) -- mate_hook_run hook 触发审计 +-- (原本命名为 V9 但与 V9__usage_cache_tokens.sql 撞号;重命名为 V10 以共存) CREATE TABLE IF NOT EXISTS mate_hook ( id BIGINT NOT NULL PRIMARY KEY,