Migration option to allow skipping existing tables check #40

Closed
opened 2019-04-29 23:16:41 +00:00 by jamie · 6 comments
jamie commented 2019-04-29 23:16:41 +00:00 (Migrated from git.hazaar.io)

This can be an option in the API call and on the app console UI. Something like Allow existing tables or the like.

What this will do is the following:

  • Skip the existing tables check that happens at the start of the migration.
  • Check if the new element exists before creating it
  • If the table exists, do a diff on it and see if it is different and:
    • If it is different, throw an exception and bail out because we can't migrate a table when we don't know what version it is at and figuring out where it should be is too difficult.
    • If it is the same, celebrate by carrying on like nothing happened.
This can be an option in the API call and on the app console UI. Something like *Allow existing tables* or the like. What this will do is the following: * Skip the existing tables check that happens at the start of the migration. * Check if the new element exists before creating it * If the table exists, do a diff on it and see if it is different and: * If it is different, throw an exception and bail out because we can't migrate a table when we don't know what version it is at and figuring out where it should be is too difficult. * If it is the same, celebrate by carrying on like nothing happened.
jamie commented 2019-04-29 23:16:41 +00:00 (Migrated from git.hazaar.io)

changed milestone to %1

changed milestone to %1
jamie commented 2019-04-30 05:47:28 +00:00 (Migrated from git.hazaar.io)

created merge request !14 to address this issue

created merge request !14 to address this issue
jamie commented 2019-04-30 05:47:28 +00:00 (Migrated from git.hazaar.io)

mentioned in merge request !14

mentioned in merge request !14
jamie commented 2019-04-30 05:50:34 +00:00 (Migrated from git.hazaar.io)

closed via merge request !14

closed via merge request !14
jamie commented 2019-04-30 05:50:35 +00:00 (Migrated from git.hazaar.io)

closed via commit d1d5ee1d7e

closed via commit d1d5ee1d7e6f3e4dc1412af79b1f13fee9471220
jamie commented 2020-03-06 02:55:13 +00:00 (Migrated from git.hazaar.io)

mentioned in commit d1d5ee1d7e

mentioned in commit d1d5ee1d7e6f3e4dc1412af79b1f13fee9471220
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: hazaar/hazaar-dbi#40
No description provided.