fix(db): isolate redemption migration from identity schema
Staging Backend Quality Gate / validate (push) Successful in 15m31s
Staging Backend Quality Gate / publish (push) Successful in 23m10s

This commit is contained in:
Jesse
2026-08-07 19:05:01 +08:00
parent 0ff9dc039f
commit d63f10dcc2
4 changed files with 49 additions and 155 deletions
@@ -33,8 +33,11 @@ test("redeem security: case-sensitive hashing, rate limiting, idempotency and or
},
});
assert.equal(migration.status, 0, migration.stderr);
assert.match(migration.stdout, /applied 20260807020000_redeem_security\.sql/);
// Only the supabase compatibility migration exists; the db/migrations
// copy was removed because identity-only fixtures apply that directory
// without the business schema (see BUG-144).
assert.match(migration.stdout, /applied 20260807030000_redeem_security\.sql/);
assert.doesNotMatch(migration.stdout, /20260807020000_redeem_security/);
fixture.psqlAs("identity_runtime", "identity-runtime-test-password", `
insert into identity.users (name, email, email_verified, email_verified_at)