Hazaar Tool: DB migrate snapshot needs to try and detect renamed tables #16
Labels
No labels
bug
confirmed
critical
database
discussion
documentation
email-support
enhancement
feature
suggestion
support
warlock
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference: hazaar/hazaar-mvc-old#16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I need to have a think about how to handle tables that have been renamed. Currently, renaming a table is detected as a remove and a create action. This works for now and manages to get the schema updated and looking how it should. The problem is, this will cause all the data in the table to be lost, which may not be what we are after.
I see two options here:
I'm inclined to go with option two because hey, this is Hazaar, where magic happens. I see this working as follows:
That should just about do it.
This has been added in
6ffed4010
Reassigned to @jamie
Status changed to closed
mentioned in commit
6ffed40106