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

migrate dies when parsing files with duplicate timestamps #731

Open
nickpalmer opened this issue Apr 22, 2022 · 1 comment
Open

migrate dies when parsing files with duplicate timestamps #731

nickpalmer opened this issue Apr 22, 2022 · 1 comment

Comments

@nickpalmer
Copy link

Describe the Bug
When running migrations that were created with the same timestamp migrate will crash.

Steps to Reproduce
Steps to reproduce the behavior:

  1. Write two migrations with the same timestamp
20220311025833_first.down.sql 
20220311025833_first.up.sql
20220311025833_second.down.sql
20220311025833_second.up.sql
  1. Run migrate with these files

Expected Behavior
The migrations should run in alphabetical order without error

Migrate Version
dev

Loaded Source Drivers
file

Loaded Database Drivers
postgresql, stub, cockroach, cockroachdb, crdb-postgres, postgres

Go Version
go version go1.17.6 darwin/arm64

@DUWAPP01
Copy link

E

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

No branches or pull requests

2 participants