mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Add script to generate schema for intermediate DB (#24484)
This will be used by migration scripts.
This commit is contained in:
6
.github/workflows/migration-tests.yml
vendored
6
.github/workflows/migration-tests.yml
vendored
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user