Fork me on GitHub
#duct
<
2018-07-30
>
scaturr20:07:34

I routinely see this message when working with the ragtime module:

remote: Caused by: clojure.lang.ExceptionInfo: Conflict! Expected :slack-api.migration/create-slack-tokens#d17ab824 but :slack-api.migration/create-slack-tokens#9a931b76 was applied. {:reason :ragtime.strategy/migration-conflict, :expected ":slack-api.migration/create-slack-tokens#d17ab824", :found ":slack-api.migration/create-slack-tokens#9a931b76"}

weavejester20:07:24

It means you’ve applied the migration in production, then changed the migration and tried to apply it again.

weavejester20:07:59

The bit after the # is a partial hash of the contents of the migration.

scaturr20:07:25

makes sense! thank you

scaturr20:07:49

so would changing formatting of that migration alter that?

scaturr20:07:57

I just store my migrations in config.edn

weavejester20:07:24

Currently I think it just serialises the migration then hashes it.

weavejester20:07:37

Changes to the edn shouldn’t affect it, but changes to the SQL will.

scaturr20:07:02

curious why that may be

scaturr20:07:50

seems to be tied to the id stored in the ragtime_migrations table