Skip to content

Migrator

migrateToLatest()

migrateToLatest() — returns string

Available in: migrator Category: General Functions

Migrates the database schema to the latest available migration version. This is a shortcut for migrateTo(version) without needing to specify a version explicitly.

// Migrate database to the latest version
result = application.wheels.migrator.migrateToLatest();

// Output the result message
writeOutput(result);