I started to collect differences in the data models of Cockpit CMS v1 and v2 and I plan to release a migrate script/addon soon.
Some pieces are missing. Feel free to search for “TODO” and to send a pull request with changes.
In the meantime, you can use a a fork of v1 , which is compatible with PHP 8.1.
# Migrate Cockpit CMS v1 to v2
Many data formats in Cockpit CMS v2 are different, than in v1. In preparation for writing a migrate script, I collected and compared (most of) them.
Cockpit CMS v1 is compatible with PHP 7.4. If you run `composer update`, it should be compatible with PHP 8.0, which reaches EOL in 2023-11-26.
Because I don't have an alternative for all missing functionalities (yet), I started [a fork of v1](https://codeberg.org/raffaelj/cockpit) with PHP 8.1 compatibility. PHP 8.1 reaches EOL in 2024-11-25. I won't add new features, but I may fix some bugs. The main reason for this fork is to buy some time until all my projects are migrated to Cockpit CMS v2 or to a different system.
## Research/Tutorials
A few people already shared their migration steps:
* https://discourse.getcockpit.com/t/converting-from-v1-to-v2-collections/2718
* https://ronaldaug.medium.com/migrating-cockpit-cms-v1-to-v2-90376a64df22
* https://discourse.getcockpit.com/t/v1-to-v2-migration-and-assets-issues/2775
## Field definitions
### v1 (core)
This file has been truncated. show original
2 Likes
I published my draft of the Migrate addon right now. Feel free to copy and to modify it, because I won’t finish it.
# Migrate addon for Cockpit CMS
Migrate and convert models, data, accounts etc. from [Cockpit CMS v1][1] to [v2][2].
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][3], 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][4].
See also [a long list with data comparisons][5] in the same repository.
## Tested with
* 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)
## Concepts
This file has been truncated. show original
kvanska
September 20, 2023, 8:47am
3
Can I ask which CMS you ended up with?
Sure. It’s Drupal. I’m still not sure, if I want to make it my new main CMS, but it looks promising. Even if not. It’s always good to be familiar with a solid CMS, that has accessibility as a high priority.