grind-db
Version:
Database provider for Grind, powered by Knex
13 lines (10 loc) • 303 B
JavaScript
import '../BaseCommand'
export class CurrentVersionCommand extends BaseCommand {
name = 'migrate:current-version'
description = 'View the current version for the migration'
run() {
return this.db.migrate.currentVersion().then(version => {
this.comment(`Current Version: ${version}`)
})
}
}