Skip to content

Migrator

migrateTo()

migrateTo() — returns string

Available in: migrator Category: General Functions

Migrates database to a specified version. Whilst you can use this in your application, the recommended useage is via either the CLI or the provided GUI interface

NameTypeRequiredDefaultDescription
versionstringnoThe Database schema version to migrate to
// Migrate to a specific version
// Returns a message with the result
result=application.wheels.migrator.migrateTo(version);