typeorm
Version:
Data-Mapper ORM for TypeScript, ES7, ES6, ES5. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, MongoDB databases.
19 lines (18 loc) • 453 B
TypeScript
import { QueryRunner } from "../query-runner/QueryRunner";
/**
* Migrations should implement this interface and all its methods.
*/
export interface MigrationInterface {
/**
* Optional migration name, defaults to class name.
*/
name?: string;
/**
* Run the migrations.
*/
up(queryRunner: QueryRunner): Promise<any>;
/**
* Reverse the migrations.
*/
down(queryRunner: QueryRunner): Promise<any>;
}