0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-08 02:52:39 -05:00

Updated migrations test to rollback to different versions

no issue

- in 4.0, we don't expect to rollback to 3.0 because there are
  irreversible migrations
- the existing test attempts to do this because it was written for v3
- this commit updates the test to apply to v4, although this will need
  to change soon when we switch branches
This commit is contained in:
Daniel Lockyer 2021-02-02 10:24:49 +00:00
parent 0958654457
commit fb26e3d892
No known key found for this signature in database
GPG key ID: FFBC6FA2A6F6ABC1

View file

@ -66,7 +66,13 @@ jobs:
- run: |
node index.js &
sleep 20 && { kill $! && wait $!; } 2>/dev/null
- run: yarn knex-migrator rollback --v 4.0 --force
if: github.ref == 'refs/heads/4.0'
- run: yarn knex-migrator rollback --v 3.0 --force
if: github.ref == 'refs/heads/master'
- run: yarn knex-migrator migrate --force
test: