MigrationRunner.php
system/Database/MigrationRunner.php
1 class
27 methods
class MigrationRunner
Class MigrationRunner
__construct
(MigrationsConfig $config, $db = null)
latest
(?string $group = null)
regress
(int $targetBatch = 0, ?string $group = null)
force
(string $path, string $namespace, ?string $group = null)
findMigrations
()
findNamespaceMigrations
(string $namespace)
migrationFromFile
(string $path, string $namespace)
setNamespace
(?string $namespace)
setGroup
(string $group)
setName
(string $name)
setSilent
(bool $silent)
getMigrationNumber
(string $migration)
getMigrationName
(string $migration)
getObjectUid
($object)
getCliMessages
()
clearCliMessages
()
clearHistory
()
addHistory
($migration, int $batch)
removeHistory
($history)
getHistory
(string $group = 'default')
getBatchHistory
(int $batch, $order = 'asc')
getBatches
()
getLastBatch
()
getBatchStart
(int $batch)
getBatchEnd
(int $batch)
ensureTable
()
migrate
($direction, $migration)