Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support zero based migrations #46

Merged
merged 2 commits into from
Sep 23, 2024
Merged

Support zero based migrations #46

merged 2 commits into from
Sep 23, 2024

Conversation

cressie176
Copy link
Contributor

@hustler requested we support migration files starting with a zero level, e.g. 000.some-migration.sql. I think it's achievable by defaulting the watermark to -1 instead of zero

@@ -13,10 +13,10 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm ci
- run: npm i
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The modern package-lock.json format broke npm ci. I've removed package-lock.json (it's pointless for modules anyway) and changed to npm i since npm ci only works with package-lock / shrinkwrap

Copy link

@hustler hustler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻 Yep fixes the issue I was seeing with filenames that start with '0'

@cressie176 cressie176 merged commit 0ca5255 into master Sep 23, 2024
5 checks passed
@cressie176 cressie176 deleted the zero-based-migrations branch September 23, 2024 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants