UNPKG

628 BTypeScriptView Raw
1import { MigrationInterface } from "./MigrationInterface";
2/**
3 * Represents entity of the migration in the database.
4 */
5export declare class Migration {
6 /**
7 * Migration id.
8 * Indicates order of the executed migrations.
9 */
10 id: number | undefined;
11 /**
12 * Timestamp of the migration.
13 */
14 timestamp: number;
15 /**
16 * Name of the migration (class name).
17 */
18 name: string;
19 /**
20 * Migration instance that needs to be run.
21 */
22 instance?: MigrationInterface;
23 constructor(id: number | undefined, timestamp: number, name: string, instance?: MigrationInterface);
24}