Database upgrade mechanism #29
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Research
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
slendium/framework#29
Loading…
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?
Modules should be able to declare "database upgrades" that are applied after the schema is altered to the latest version. Modules should be able to declare an upgrade as "idempotent" so that tools can by default reject retries of non-idempotent upgrades.
A default module (called "tools"?) should be available that implements this as a CLI command. It should track which upgrades have already been applied through the upgrade class name.
This command should provide the option to clean up or truncate tables or columns after the upgrades have been applied successfully (this is where the
UpgradeOptionsfrom the OCD library come in). This should be behind a flag that has to be enabled explicitly.