paltman-archive / nashvegas

Another database migration script runner for Django projects.
http://paltman.github.com/nashvegas
MIT License
97 stars 18 forks source link

Improve SyncDB #46

Closed dcramer closed 12 years ago

dcramer commented 12 years ago

Including:

I'm not really sure about the last change in the list. It solved our problems but it's not the greatest solution.

paltman commented 12 years ago

I want to reconcile thoughts laid out by @brutasse in #48. It seems I was a bit too eager to pull in previous changes, that I broke backward compatibility with workflow others were using that I was unaware of. I need to think on this some more, but would love to hear everyone's opinion on the matter.

paltman commented 12 years ago

@brutasse would it be possible to supply a patched based on this pull request's changes to support the scenario you are looking for: "Check if the DB is being synced for the 1st time. If so: do syncdb + seed migrations". I am thinking you should be able to detect this if the nashvegas_migration table is in the database or not (see init_nashvegas in the management command)?

paltman commented 12 years ago

@brutasse I am going to merge this improvement of @dcramer's but still want to consider a way to reconcile his use cases with what it appears I have broken of yours.