Skip to main content

HotDBMigration

hotstaq / Modules / HotDBMigration

Class: HotDBMigration

Migration data related to table changes.

Table of contents​

Constructors​

Properties​

Methods​

Constructors​

constructor​

• new HotDBMigration(version?)

Parameters​

NameTypeDefault value
versionnumber1

Defined in​

schemas/HotDBMigration.ts:11

Properties​

version​

• version: number

The version of this migration. NOTE USE WHOLE INTEGERS ONLY

Defined in​

schemas/HotDBMigration.ts:9

Methods​

down​

â–¸ Abstract down(): Promise<void>

Executes when migrating the table downwards, or undoing actions.

Returns​

Promise<void>

Defined in​

schemas/HotDBMigration.ts:23


up​

â–¸ Abstract up(): Promise<void>

Executes when migrating the table upwards.

Returns​

Promise<void>

Defined in​

schemas/HotDBMigration.ts:19