Refresh HiveGrid Cloud reference snapshot

This commit is contained in:
david committed 2026-08-03 15:31:14 +02:00
1 parent 5e99e14772
commit 7f88026f79
5955 files changed
+1177325 -188362

No files matched your search

@@ -19,7 +19,7 @@ function verifyWithOverrides({ schemaText = hardenedSchema, migrationSql = harde
}
describe("verify-audit-cascade-guard", () => {
it("passes against the hardened Prisma schema and migration", () => {
it("passes against the hardened Prisma schema and baseline", () => {
const result = verifyWithOverrides();
assert.equal(result.ok, true);
@@ -43,8 +43,14 @@ describe("verify-audit-cascade-guard", () => {
it("fails when actor or target SQL columns are made NOT NULL", () => {
const result = verifyWithOverrides({
migrationSql: hardenedMigration
.replace('"actorUserId" TEXT,', '"actorUserId" TEXT NOT NULL,')
.replace('"targetUserId" TEXT,', '"targetUserId" TEXT NOT NULL,'),
.replace(
/(CREATE TABLE public\."ImpersonationAudit" \([\s\S]*?"actorUserId") text,/,
"$1 text NOT NULL,"
)
.replace(
/(CREATE TABLE public\."ImpersonationAudit" \([\s\S]*?"targetUserId") text,/,
"$1 text NOT NULL,"
),
});
assert.equal(result.ok, false);