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