silverstripe-migrations
silverstripe-migrations copied to clipboard
Facilitates atomic database migrations in SilverStripe.
For SS v4, add ability for devs to hook into `dev/build` to execute migrations. Use `onAfterBuild` extension hook circa SS v4+, c.f. https://github.com/silverstripe/silverstripe-framework/blob/4.11/src/ORM/DatabaseAdmin.php#L406 Ensure that this can be enabled or...
Hi SS4 compatibility upgrade. I followed steps and considerations from docs on: - https://docs.silverstripe.org/en/4/upgrading/upgrading_module/ - https://docs.silverstripe.org/en/4/changelogs/4.0.0/ bypassed in most cases solving of any `@deprecated 5.0` and `TODO` parts. What is...
Add compatibility SS v4, conform to new module standards, etc. List of known changes: - Revert method added in #14 Full list TBD (most likely once work starts).
Add a quick shortcut to facilitate renaming of database tables. Use case: Say you rename a `DataObject` from `OldDataObject` to `NewDataObject`, two tables will end up existing corresponding with each...
Ensure `class_exists()` check is run first on the migration class before instantiating. Useful in case migrations end up being consolidated or removed and user attempts to roll back a cluster...
Add new feature to store serialized metadata which is intended to be updated during `up` migrations. This will better facilitate `down` migrations so that information on what was changed can...
Output current migration immediately so you can tell which migration is currently running, instead of waiting until it's completely finished. Once it's completed, it should (preferably on the **same line**)...
Need to ensure it's possible to have abstract descendants of `Migration` class so that custom functionality can be setup. Just need to ensure `MigrateTask` uses reflection to determine if the...
New feature enabled in https://github.com/patricknelson/silverstripe-migrations/commit/b03a74f21e7482391738845f50719f2daa026e7e allows the ability to transform columns, however, published versions of these objects may not receive these updates since (due to abstraction) `_Live` tables may not...
Ping @bmckeown @brendanmckeown If you do write any further tests, associate it with this ticket, please.