修改配置编辑不了的问题

This commit is contained in:
andy
2026-08-18 12:41:39 +08:00
parent 22b504e53e
commit 2a2f78c81e
42 changed files with 1082 additions and 178 deletions

View File

@@ -6,6 +6,7 @@ describe("PostgreSQL application-role privilege contract", () => {
const source = await readFile(new URL("../scripts/migrate-postgres.mjs", import.meta.url), "utf8");
expect(source).toContain('["billing_wallets", "SELECT, INSERT, UPDATE"]');
expect(source).toContain('["billing_ledger", "SELECT, INSERT"]');
expect(source).toContain('["platform_runtime_settings", "SELECT, INSERT, UPDATE"]');
expect(source).toContain("applicationRoleTablePrivileges().map");
expect(source).toContain("REVOKE ALL ON TABLE");
expect(source).not.toContain("ALTER DEFAULT PRIVILEGES");