migrate icon indicating copy to clipboard operation
migrate copied to clipboard

migrate dies when parsing files with duplicate timestamps

Open nickpalmer opened this issue 2 years ago • 1 comments

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

nickpalmer avatar Apr 22 '22 03:04 nickpalmer

E

DUWAPP01 avatar May 16 '22 12:05 DUWAPP01