Fix migration ID for “remove account type” migration (#1109)

Good catch @Jackenmen in
https://github.com/actualbudget/actual/pull/948#issuecomment-1580501909
— I’ve also added a CI check to ensure bad migrations aren’t introduced
in the future.

I think if you have a budget that has managed to have this migration
applied successfully, you’ll need to manually patch
`getAppliedMigrations` in
`packages/loot-core/src/server/migrate/migrations.ts` and inject a query
to remove the old migration ID and insert the new one.
This commit is contained in:
Jed Fox
2023-06-08 14:52:13 -04:00
committed by GitHub
parent a25327d370
commit 6e6d765699
4 changed files with 85 additions and 0 deletions

View File

@@ -32,3 +32,13 @@ jobs:
uses: ./.github/actions/setup
- name: Test
run: yarn test
migrations:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: '19'
- name: Check migrations
run: node ./.github/actions/check-migrations.js