October\Rain\Database\Updater

Source: ~/vendor/october/rain/src/Database/Updater.php

Database updater

Executes database migration and seed scripts based on their filename.

Public methods

public string getClassFromFile(string $file)

Extracts the namespace and class name from a file.

Parameters
  • string $file

public void packDown($file)

Packs down a migration or seed file.

Parameters
  • $file

public object resolve(string $file)

Resolve a migration instance from a file.

Parameters
  • string $file

public void setUp($file)

Sets up a migration or seed file.

Parameters
  • $file

Protected methods

protected void isValidScript($object)

Checks if the object is a valid update script.

Parameters
  • $object