Class: MigrationController

controllers~MigrationController()

Class representing a migration controller.

Constructor

new MigrationController()

Create a migration controller.
Source:

Methods

(async) byId(id) → {Promise:.<object:>}

Get a migration by id.
Parameters:
Name Type Description
id number
Source:
Returns:
Type
Promise:.<object:>

(async) byName(name) → {Promise:.<object:>}

Get a migration by name.
Parameters:
Name Type Description
name string
Source:
Returns:
Type
Promise:.<object:>

(async) insert(name) → {Promise:.<void:>}

Insert a migration.
Parameters:
Name Type Description
name string
Source:
Returns:
Type
Promise:.<void:>