2. Database

The database structure changed significantly between Mayd and Mayd 2. We built a migration tool that automatically migrates most of your database for Mayd 2.

Migrating the database

Please use the database migration tool to migrate the Mayd database (and filesystem) to Mayd 2. See its README for detailed documentation.

It is a good practice to remove all your existing migrations and create one new migration that migrates an empty database to the completely migrated (after the Mayd 2 migration) state of your project. To do this in a clean way you have to truncate the table migration_versions and add the new migration to it manually.

Table of Contents