DEV: Add script to generate schema for intermediate DB (#24484)

This will be used by migration scripts.
This commit is contained in:
Selase Krakani
2024-01-22 17:45:52 +00:00
committed by GitHub
parent 4f901cae8f
commit 93264da206
5 changed files with 1127 additions and 0 deletions

View File

@@ -122,5 +122,11 @@ jobs:
if: steps.app-cache.outputs.cache-hit != 'true'
run: rm -rf tmp/app-cache/uploads && cp -r public/uploads tmp/app-cache/uploads
- name: Check core database drift
run: |
mkdir /tmp/intermediate_db
./migrations/scripts/schema_generator /tmp/intermediate_db/base_migration.sql
diff -u migrations/common/intermediate_db_schema/000_base_schema.sql /tmp/intermediate_db/base_migration.sql
- name: RSpec
run: bin/rspec migrations/spec/