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 |
Returns:
(async) byName(name) → {Promise:.<object:>}
Get a migration by name.
Parameters:
| Name | Type | Description |
|---|---|---|
name |
string |
Returns:
(async) insert(name) → {Promise:.<void:>}
Insert a migration.
Parameters:
| Name | Type | Description |
|---|---|---|
name |
string |