UNPKG

453 BTypeScriptView Raw
1import { QueryRunner } from "../query-runner/QueryRunner";
2/**
3 * Migrations should implement this interface and all its methods.
4 */
5export interface MigrationInterface {
6 /**
7 * Optional migration name, defaults to class name.
8 */
9 name?: string;
10 /**
11 * Run the migrations.
12 */
13 up(queryRunner: QueryRunner): Promise<any>;
14 /**
15 * Reverse the migrations.
16 */
17 down(queryRunner: QueryRunner): Promise<any>;
18}