Closed geohuz closed 3 years ago
I found if wrote:
tusker diff migrations schema
then it is ok! May be it is better to document the steps for the scenario, it may confuse new comer like me :-)
If you are working with a schema
file you should be diffing your migrations
against the schema
and not the database
. That's the default btw. If you just run tusker diff
it will do exactly the same thing as running tusker diff migrations schema
.
Could you provide some insight what feature and/or documentation you were missing?
The marv lib will create "migrations" and "migrations_lock" table in the migrate target db, so the second migrate script after initial, when using
tusker diff database schema
(The database I've setup to target db):As you can see from above four statements have been generated as there is no migrations in the source schema, but that will crash the marv script. So if there is anyway to specify on the tusker side to ignore the "migrations" tables?