import { MigrationExecutor } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/migration/MigrationExecutor.ts";
Executes migrations: runs pending and reverts previously executed migrations.
Methods
Creates table "migrations" that will store information about executed migrations.
Delete previously executed migration's data from the migrations table.
Finds the latest migration in the given array of migrations. PRE: Migration array must be sorted by descending id.
Finds the latest migration (sorts by timestamp) in the given array of migrations.
Gets all migrations that setup for this connection.
Inserts new executed migration's data into migrations table.
Loads all migrations that were executed and saved into the database (sorts by id).
Deletes an executed migration.
Tries to execute a single migration given.
Executes all pending migrations. Pending migrations are migrations that are not yet executed, thus not saved in the database.
Returns an array of all migrations.
Returns an array of all executed migrations.
Returns an array of all pending migrations.
Inserts an executed migration.
Lists all migrations and whether they have been executed or not returns true if there are unapplied migrations
Reverts last migration that were run.