Skip to main content
Module

x/typeorm/src/index.ts>MigrationInterface

Forked from https://github.com/typeorm/typeorm
Latest
interface MigrationInterface
import { type MigrationInterface } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/index.ts";

Migrations should implement this interface and all its methods.

Properties

optional
name: string

Optional migration name, defaults to class name.

Methods

up(queryRunner: QueryRunner): Promise<any>

Run the migrations.

down(queryRunner: QueryRunner): Promise<any>

Reverse the migrations.