typeorm
Version:
Data-Mapper ORM for TypeScript, ES7, ES6, ES5. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, MongoDB databases.
29 lines (28 loc) • 752 B
TypeScript
import { MigrationInterface } from "./MigrationInterface";
/**
* Represents entity of the migration in the database.
*/
export declare class Migration {
/**
* Migration id.
* Indicates order of the executed migrations.
*/
id: number | undefined;
/**
* Timestamp of the migration.
*/
timestamp: number;
/**
* Name of the migration (class name).
*/
name: string;
/**
* Migration instance that needs to be run.
*/
instance?: MigrationInterface;
/**
* Whether to run this migration within a transaction
*/
transaction?: boolean;
constructor(id: number | undefined, timestamp: number, name: string, instance?: MigrationInterface, transaction?: boolean);
}