RainLab\Builder\Classes\TableMigrationCodeGenerator::generateCreateOrUpdateCode PHP Метод

generateCreateOrUpdateCode() защищенный Метод

protected generateCreateOrUpdateCode ( $tableDiff, $isNewTable, $newOrUpdatedTable )
    protected function generateCreateOrUpdateCode($tableDiff, $isNewTable, $newOrUpdatedTable)
    {
        /*
         * Although it might seem that a reverse diff could be used
         * for the down() method, that's not so. The up and down operations 
         * are not fully symmetrical.
         */
        return $this->generateMigrationCode($this->generateCreateOrUpdateUpCode($tableDiff, $isNewTable, $newOrUpdatedTable), $this->generateCreateOrUpdateDownCode($tableDiff, $isNewTable, $newOrUpdatedTable));
    }