weavejester / ragtime

Database-independent migration library
Eclipse Public License 1.0
610 stars 85 forks source link

Exception while running migrations #96

Closed erez-rabih closed 8 years ago

erez-rabih commented 8 years ago

Hi,

I am getting the following error when running the migrate function:

Exception Conflict! Expected ragtime.repl$wrap_reporting$reify__719@33ee656f but ragtime.repl$wrap_reporting$reify__719@f3c1ebe was applied.  ragtime.strategy/raise-error (strategy.clj:39)

Anything I can do to solve this?

danielcompton commented 8 years ago

You might need to provide more information on your migrations? That error message by itself isn't enough to debug it.

erez-rabih commented 8 years ago

What would help investigating this?

weavejester commented 8 years ago

Actually, you've supplied enough information. You're running into a bug caused by an interaction between ragtime.repl, ragtime.core and ragtime.strategy. What should happen is that you're told the IDs of the migrations that conflict, but ragtime.core is missing a function call. I'll put in a fix.

weavejester commented 8 years ago

This should be fixed in 0.5.3. You should get a conflict message that tells you the IDs of the conflicting migrations.

erez-rabih commented 8 years ago

@weavejester Thanks for the fast response I appreciate it.