You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 14, 2020. It is now read-only.
When trying to apply migrations (using default config of pending: true, method: 'all') and there's more than one migration pending, I'm getting a duplicate key error...
The schema for the migrations table needs changing - timestamps should never be used as a primary key like this. Whilst in all mode, it's trying to insert multiple rows with the exact same ID.
timestamp can be an indexed column, but not unique. Alternatively a new column of id could be added as a serial primary key, but that seems unnecessary.
Changing the method to each works around the problem for now.