fix(sandbox): use posting engine and recover failed seeds (#2297)

* fix(sandbox): seed through posting engine and recover failed attempts

* test(sandbox): align CI auth schema for anonymous users
This commit is contained in:
Mattsson
2026-09-05 10:42:14 +02:00
committed by GitHub
parent 8e1f9d5201
commit 7c36d471b5
13 changed files with 574 additions and 360 deletions
+6
View File
@@ -47,6 +47,12 @@ AS $$
SELECT string_to_array(name, '/');
$$;
-- auth.identities is created by GoTrue at startup, not by the Postgres
-- image. Likewise, GoTrue's 20240214120130 migration adds is_anonymous;
-- sandbox authorization reads this server-owned flag, not user metadata.
ALTER TABLE auth.users
ADD COLUMN IF NOT EXISTS is_anonymous boolean NOT NULL DEFAULT false;
-- auth.identities is created by GoTrue at startup, not by the Postgres
-- image, and GoTrue does not run in CI. Triggers on auth.users that touch
-- identities (20260903110000 unlink_old_address_identities) need the table