Copied!
CloneableInstantiable
Methods
public __construct()
public count() : int
 
  • return int number of migrations in the system
public getCurrentMigrationId() : int
 
  • return int the highest migration id stored in the migration table
public getErrors() : array
 
  • return (string|array<string,string>)[]
public getMigrationObject(int $migrationId) : ?PHPFUI\ORM\Migration
 

Get a specific migration class instance

public getMigrationObjects(int $page, int $perPage) : array
 
  • return \PHPFUI\ORM\Migration[]
public getStatus() : string
 
  • return string user friendly status message for display
public migrate() : bool
 

Migrates to the latest

  • return bool true if migration happened
public migrateDownOne() : int
 

Migrate one down

  • return int new migration level or zero if error
public migrateTo(int $migrationId) : bool
 

Migrate (up or down) to a specific migrationId

  • return bool true if migration happened
public migrateUpOne() : int
 

Migrate one up

  • return int new migration level or zero if error
public migrationNeeded() : bool
 
  • return bool true if a migration needs to be run
Properties
private array $errors = []
 
  • var (string|array<string,string>)[]
private readonly PHPFUI\ORM\Table\Migration $migrationTable
private string $status = ''
Methods
private runDown(PHPFUI\ORM\Migration $migration) : int
 
  • return int current migration or zero if error
private runUp(PHPFUI\ORM\Migration $migration) : int
 
  • return int current migration or zero if error
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration