Upgrade your database to UserFrosting 4 from previous versions of UserFrosting, and other frameworks.
This Sprinkle sets up a fresh installation of UF4 with a pre-existing UF 3.1 database. It will attempt to migrate your users, groups, event log, and custom permissions (authorize_group) to UF4 entities.
MAKE A COPY OF YOUR CURRENT DATABASE. This tool does not drop any tables, but it is best to err on the cautious side.
Clone the UF4 repo and run composer install, as per the documentation. Manually copy app/sprinkles.example.json to app/sprinkles.json.
Edit UserFrosting app/sprinkles.json and add the following to the require list : "userfrosting/upgrade": "~4.1.0". Also add upgrade to the base list. For example:
{
"require": {
"userfrosting/upgrade": "~4.1.0"
},
"base": [
"core",
"account",
"admin",
"upgrade"
]
}
Run composer update from the root project directory.
Run php bakery upgrade from the root project directory. It will prompt you for the credentials for your database - use the credentials for the database you wish to upgrade.
Begin migrating your code over to UF 4.1.