Property | Type | Description | |
---|---|---|---|
$code | The migration PHP code string | ||
$description | The migration description | ||
$originalScriptFileName | |||
$scriptFileName | The migration script file name. Currently only migrations with a single (or none) script file are supported by Builder editors. | ||
$version | Migration version string |
Property | Type | Description | |
---|---|---|---|
$fillable | |||
$originalVersion | |||
$validationRules |
Method | Description | |
---|---|---|
apply ( ) | ||
deleteModel ( ) | ||
getNextVersion ( ) | ||
initVersion ( $versionType ) | ||
isApplied ( ) | ||
load ( $versionNumber ) | ||
makeScriptFileNameUnique ( ) | ||
rollback ( ) | ||
save ( $executeOnSave = true ) | Saves the migration and applies all outstanding migrations for the plugin. | |
validate ( ) |
Method | Description | |
---|---|---|
assignFileName ( ) | ||
deleteVersion ( ) | ||
getOriginalFileContents ( ) | ||
getPluginUpdatesPath ( $fileName = null ) | ||
getPluginVersionInformation ( ) | ||
insertOrUpdateVersion ( ) | ||
loadScriptFile ( ) | ||
removeScriptFile ( ) | ||
rollbackSaving ( $originalVersionData, $originalScriptFileContents ) | ||
rollbackScriptFile ( $fileContents ) | ||
rollbackVersionFile ( $fileData ) | ||
saveScriptFile ( ) |
protected rollbackSaving ( $originalVersionData, $originalScriptFileContents ) |
public save ( $executeOnSave = true ) |
public $scriptFileName |