Configuration
migrateTo()
Signature
Section titled “Signature”migrateTo() — returns string
Available in: migrator
Category: Database Migrations
Description
Section titled “Description”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
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
version | string | no | — | The Database schema version to migrate to |
Examples
Section titled “Examples”// Migrate to a specific version // Returns a message with the result result=application.wheels.migrator.migrateTo(version);