可选queryRunner: QueryRunner受保护connectionOption to fake-run or fake-revert a migration, adding to the executed migrations table, but not actually running it. This feature is useful for when migrations are added after the fact or for interoperability between applications which are desired to each keep a consistent migration history.
受保护 可选queryIndicates how migrations should be run in transactions. all: all migrations are run in a single transaction none: all migrations are run without a transaction each: each migration is run in a separate transaction
受保护check受保护createCreates table "migrations" that will store information about executed migrations.
受保护deleteDelete previously executed migration's data from the migrations table.
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.
受保护get受保护get受保护getGets all migrations that setup for this connection.
Returns an array of all pending migrations.
受保护insertInserts new executed migration's data into migrations table.
受保护loadLoads all migrations that were executed and saved into the database (sorts by id).
Lists all migrations and whether they have been executed or not returns true if there are unapplied migrations
Reverts last migration that were run.
受保护with
Executes migrations: runs pending and reverts previously executed migrations.