Closed reedstrm closed 8 years ago
init --version=0
is for that use case. Does it not work?
Right, but it's not documented in the README, or in the output that 'dbmigrator list' does on first run on a db. I keep forgetting about it.
@pumazi has written a gist (may also be in Connexions/cnx-deploy) for updating existing servers. Maybe we should use that instead of trying to do it from scratch each time.
https://gist.github.com/pumazi/132b349ec18c7cc08cb988b1a7d5c05d
I'll update README.
Right he even moved it to napkin-notes - https://github.com/openstax/napkin-notes/blob/master/pumazi/cnx/2016-apr-release.md
Updated README in #36
the 'init' command, if not given a timestamp, assumes 'now()' which effectively assumes all migrations have been applied. This is not correct for the case of first deployment of dbmigrator control to an existing instance of an existing schema. (If you follow), It is correct for a new instance.