HotDBMigration
hotstaq / Modules / HotDBMigration
Class: HotDBMigration
Migration data related to table changes.
Table of contents​
Constructors​
Properties​
Methods​
Constructors​
constructor​
• new HotDBMigration(version?
)
Parameters​
Name | Type | Default value |
---|---|---|
version | number | 1 |
Defined in​
Properties​
version​
• version: number
The version of this migration. NOTE USE WHOLE INTEGERS ONLY
Defined in​
Methods​
down​
â–¸ Abstract
down(): Promise
<void
>
Executes when migrating the table downwards, or undoing actions.
Returns​
Promise
<void
>
Defined in​
up​
â–¸ Abstract
up(): Promise
<void
>
Executes when migrating the table upwards.
Returns​
Promise
<void
>