Back
getAvailableMigrations()
Searches db/migrate folder for migrations. Whilst you can use this in your application, the recommended useage is via either the CLI or the provided GUI interface
// Get array of available migrations migrations = application.wheels.migrator.getAvailableMigrations(); if(ArrayLen(migrations)){ latestVersion = migrations[ArrayLen(migrations)].version; } else { latestVersion = 0; }
Copied!