Skip to content

Commit

Permalink
fix migration id
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Gahlot <[email protected]>
  • Loading branch information
gauravgahlot committed Mar 26, 2021
1 parent 0f2a86f commit 416f8da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import migrate "github.com/rubenv/sql-migrate"
//
// The migration changes the primary key on events table from 'created_at' to `id`,
// which will always be unique for each event generated at any point in time.
func Get2020121691335() *migrate.Migration {
func Get202012169135() *migrate.Migration {
return &migrate.Migration{
Id: "2020121691335-update-events-primary-key",
Id: "202012169135-update-events-primary-key",
Up: []string{`
ALTER TABLE events DROP CONSTRAINT events_pkey;
ALTER TABLE events ADD PRIMARY KEY (id);
Expand Down
2 changes: 1 addition & 1 deletion db/migration/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var migrations = []func() *migrate.Migration{
Get202010221010,
Get202012041103,
Get202012091055,
Get2020121691335,
Get202012169135,
}

func GetMigrations() *migrate.MemoryMigrationSource {
Expand Down

0 comments on commit 416f8da

Please sign in to comment.