NX-10x: Reliability, error handling, runtime UX hardening, and migration safety gate (NX-101, NX-102, NX-103, NX-104) #32
6
.github/workflows/migration-safety.yml
vendored
6
.github/workflows/migration-safety.yml
vendored
@@ -75,10 +75,12 @@ jobs:
|
||||
run: |
|
||||
cd backend
|
||||
alembic upgrade head
|
||||
pg_dump -h postgres -p 5432 -U nexapg -d nexapg --schema-only --no-owner --no-privileges > /tmp/schema_head_before.sql
|
||||
pg_dump -h postgres -p 5432 -U nexapg -d nexapg --schema-only --no-owner --no-privileges \
|
||||
| sed '/^\\restrict /d; /^\\unrestrict /d' > /tmp/schema_head_before.sql
|
||||
|
||||
alembic downgrade -1
|
||||
alembic upgrade head
|
||||
pg_dump -h postgres -p 5432 -U nexapg -d nexapg --schema-only --no-owner --no-privileges > /tmp/schema_head_after.sql
|
||||
pg_dump -h postgres -p 5432 -U nexapg -d nexapg --schema-only --no-owner --no-privileges \
|
||||
| sed '/^\\restrict /d; /^\\unrestrict /d' > /tmp/schema_head_after.sql
|
||||
|
||||
diff -u /tmp/schema_head_before.sql /tmp/schema_head_after.sql
|
||||
|
||||
Reference in New Issue
Block a user