2.0.0
Breaking
-
A migration's default name is now its class name in snake case, the way Laravel names a migration file.
CreateUsersTableis recorded ascreate_users_tableinstead ofCreateUsersTable. -
A database migrated with 1.0.0 recorded the old class names, so it will throw
MigrationMismatchExceptionon its next boot. To keep an existing database working, overridename()on each migration that already ran and return the name it was recorded under:class CreateUsersTable extends Migration { override name(): string { return 'CreateUsersTable'; } }
-
An overridden
name()is still used as is.
Changed
DB.status(),DB.migrate(),DB.fresh()and the migration events now report migration names in snake case.