RainLab\Builder\Classes\MigrationModel::rollbackScriptFile PHP Method

rollbackScriptFile() protected method

protected rollbackScriptFile ( $fileContents )
    protected function rollbackScriptFile($fileContents)
    {
        $scriptFilePath = $this->getPluginUpdatesPath($this->originalScriptFileName . '.php');
        @File::put($scriptFilePath, $fileContents);
        if ($this->scriptFileName != $this->originalScriptFileName) {
            $scriptFilePath = $this->getPluginUpdatesPath($this->scriptFileName . '.php');
            @unlink($scriptFilePath);
        }
    }