You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: update database permissions and verification scripts
- Added instructions in `DB-MIGRATIONS.md` to run `rebootstrap-roles` after `drop-everything`.
- Enhanced `0001_create_app_db_users.sh` and `0002_setup_management_database.sh` to conditionally grant schema USAGE privileges.
- Updated `rebootstrap-full-bootstrap.sh` to include conditional grants for schema USAGE.
- Modified `verify-bootstrap-contract.sh` to check for schema USAGE privileges and added verification for querying `linear_migration_history`.
Copy file name to clipboardExpand all lines: docs/development/DB-MIGRATIONS.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,7 @@ Rules:
30
30
- Prefix must be four digits.
31
31
- Filename format must be `^[0-9]{4}_[a-z0-9_]+\.sql$`.
32
32
- Previously applied files are immutable.
33
+
- After **drop-everything**, run **rebootstrap-roles** before migrate jobs. Rebootstrap must grant **`USAGE ON SCHEMA public`** to read/read_write roles **as the DB owner** (migrator cannot delegate schema USAGE on Postgres 15+ after `DROP SCHEMA public`; see Podverse-aligned bootstrap scripts).
0 commit comments