Files
certd/packages/ui/certd-server/db/migration/v10051__audit_log_scope.sql
T

11 lines
482 B
SQL
Raw Normal View History

2026-07-12 02:29:54 +08:00
ALTER TABLE "cd_audit_log" ADD COLUMN "scope" varchar(32) NOT NULL DEFAULT ('user');
CREATE INDEX "index_audit_log_scope" ON "cd_audit_log" ("scope");
2026-07-12 22:28:51 +08:00
2026-07-13 00:53:19 +08:00
ALTER TABLE "cd_audit_log" ADD COLUMN "success" boolean NOT NULL DEFAULT (1);
2026-07-25 13:46:11 +08:00
-- 删除project_name字段
ALTER TABLE "cd_audit_log" DROP COLUMN "project_name";
2026-07-13 00:53:19 +08:00
-- 审计日志表索引
CREATE INDEX "index_audit_log_type" ON "cd_audit_log" ("type");
CREATE INDEX "index_audit_log_create_time" ON "cd_audit_log" ("create_time");