BootstrapMigrations extends Migrations implements BootstrapMigrationsInterface
$action | ||
$shortname | ||
$path | ||
$title | ||
$description | ||
$icon |
This function is called by the migration manager and should include calls to all needed migration functions.
Runs migrations from an sql file inside the Migrations directory of your action. Will replace {{app_id}} with the ID of the app when run from the web.
$filename |
This is run automatically
For removing an existing relation. Not always 100% reliable if you have duplicate relations.
$table |
$relation |
Delete table. I hope you know what you are doing.
$table_name |
In some cases you might need to know the name of relation. This is a helper for finding that out.
$table |
$target |
Check whether relation exists. Unfortunately not 100% reliable in all cases.
$table |
$column |
$target |
Check whether given table exists.
$tablename |
$debug |
Check whether column exists for a given table.
$column |
$table |
Check whether action exists in the database
$shortname |
Class BootstrapMigrationsAction specific migrations extend this class. The function runModuleMigrations is what the migration manager is looking for. Log and error are shown on the web interface and / or emailed.