quantumdb / quantumdb

Zero-downtime schema evolution for PostgreSQL
http://quantumdb.io
Apache License 2.0
60 stars 8 forks source link

Cleanup #80

Closed NGRichter closed 3 years ago

NGRichter commented 3 years ago

This is my pull request for the cleanup command.

A new migrator is included that mirrors all tables that do not have their original name. This will still create two active versions but the older one can be dropped, after that the quantumdb schema can be deleted.

Additionally in this pull request, the last versionid of a changeset is the changesetid. You do not have to run 'changelog' over and over again to get the versionid you can fork to.

Closes #66

NGRichter commented 3 years ago

Versions do not have the changeset id anymore, instead it will retrieve the last version of the changeset by using the changeSetId

michaeldejong commented 3 years ago

Taking a look at this one tomorrow. 👍

michaeldejong commented 3 years ago

Is this one ready for merging, or do you still need to make changes?

NGRichter commented 3 years ago

This pull request is ready for merging, the last commit was a partial rollback because I noticed some tests were failing due to some changes in the one before, they are passing right now