Support a separate database for Web UI tables

This commit is contained in:
bryanpedini committed 2026-11-21 20:36:03 +01:00
1 parent a2f8e59d9b
commit f464dc0af9
38 files changed
+880 -302

No files matched your search

+1 -1
View File
@@ -470,7 +470,7 @@ func TestIntegrationUserCreateAuditRollback(t *testing.T) {
it := newITHTTP(t)
admin := it.createUser(t, "admin", roleAdmin)
tn := it.server.tables
it.database.rootExec(t, tn.sql("CREATE TRIGGER fail_create_audit BEFORE INSERT ON {audit} FOR EACH ROW "+
it.database.rootExec(t, tn.sql("CREATE TRIGGER "+qualifiedIdent(it.database.webui, "fail_create_audit")+" BEFORE INSERT ON {audit} FOR EACH ROW "+
"BEGIN IF NEW.operation = 'user_create' AND NEW.status = 201 THEN "+
"SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'forced success audit failure'; END IF; END"))
response := it.do(t.Context(), webRequest{method: "POST", path: apiPrefix + "/users", token: it.token(t, admin),