Migrate and convert models, data, accounts etc. from Cockpit CMS v1 to v2.
This is a first draft from May/June 2023, with some minor cleanup from Sept 2023. Because I decided not to use Cockpit CMS v2 anymore, I won't finish this addon. Maybe it helps as a base or as inspiration for others, so I decided to publish it in my cockpit-scripts repository.
See also a long list with data comparisons in the same repository.
- v1
- Cockpit CMS fork ("raffaelj/cockpit") 1.0.0@dev-next
- PHP 8.1
- Mongolite (SQLite)
- v2
- Cockpit CMS 2.5.1
- PHP 8.1
- Mongolite (SQLite)
described concepts are not fully implemented
Before you start the migration process: Create a backup!
Now, that you have a backup, choose a starting point:
- Your existing installation (v1)
- A new, empty v2 installation
This addon is compatible with both versions. After installing it, run the following tasks:
- Cleanup
- Convert
- Transform fields
- Remove outdated artefacts
TODO
UI is partially implemented
UI is not implemented
Copy the config
and storage
folders into your fresh installation.
You might have to comment out some lines in your config/bootstrap.php
, if your application throws errors.
Copy this repository into /addons
and name it Migrate
.
Copyright 2023 Raffael Jesche under the MIT license.