public function getModifyDatabaseDDL(PropelDatabaseDiff $databaseDiff)
    {
        $ret = $this->getBeginDDL();

        foreach ($databaseDiff->getRemovedTables() as $table) {
            $ret .= $this->getDropTableDDL($table);
        }

        foreach ($databaseDiff->getRenamedTables() as $fromTableName => $toTableName) {
            $ret .= $this->getRenameTableDDL($fromTableName, $toTableName);
        }

        foreach ($databaseDiff->getAddedTables() as $table) {
            $ret .= $this->getAddTableDDL($table);
            $ret .= $this->getAddIndicesDDL($table);
        }

        foreach ($databaseDiff->getModifiedTables() as $tableDiff) {
            $ret .= $this->getModifyTableDDL($tableDiff);
        }

        foreach ($databaseDiff->getAddedTables() as $table) {
            $ret .= $this->getAddForeignKeysDDL($table);
        }

        $ret .= $this->getEndDDL();

        return $ret;
    }
public function getModifyDatabaseDDL(PropelDatabaseDiff $databaseDiff)
    {
        $ret = $this->getBeginDDL();

        foreach ($databaseDiff->getRemovedTables() as $table) {
            $ret .= $this->getDropTableDDL($table);
        }

        foreach ($databaseDiff->getRenamedTables() as $fromTableName => $toTableName) {
            $ret .= $this->getRenameTableDDL($fromTableName, $toTableName);
        }

        foreach ($databaseDiff->getAddedTables() as $table) {
            $ret .= $this->getAddTableDDL($table);
            $ret .= $this->getAddIndicesDDL($table);
        }

        foreach ($databaseDiff->getModifiedTables() as $tableDiff) {
            $ret .= $this->getModifyTableDDL($tableDiff);
        }

        foreach ($databaseDiff->getAddedTables() as $table) {
            $ret .= $this->getAddForeignKeysDDL($table);
        }

        $ret .= $this->getEndDDL();

        return $ret;
    }
public function getModifyDatabaseDDL ( PropelDatabaseDiff $ databaseDiff ) { $ ret = $ this -> getBeginDDL ( ) ; foreach ( $ databaseDiff -> getRemovedTables ( ) as $ table ) { $ ret .= $ this -> getDropTableDDL ( $ table ) ; } foreach ( $ databaseDiff -> getRenamedTables ( ) as $ fromTableName => $ toTableName ) { $ ret .= $ this -> getRenameTableDDL ( $ fromTableName , $ toTableName ) ; } foreach ( $ databaseDiff -> getAddedTables ( ) as $ table ) { $ ret .= $ this -> getAddTableDDL ( $ table ) ; $ ret .= $ this -> getAddIndicesDDL ( $ table ) ; } foreach ( $ databaseDiff -> getModifiedTables ( ) as $ tableDiff ) { $ ret .= $ this -> getModifyTableDDL ( $ tableDiff ) ; } foreach ( $ databaseDiff -> getAddedTables ( ) as $ table ) { $ ret .= $ this -> getAddForeignKeysDDL ( $ table ) ; } $ ret .= $ this -> getEndDDL ( ) ; return $ ret ; }
Builds the DDL SQL to modify a database
based on a PropelDatabaseDiff instance

@return string
Builds the DDL SQL to modify a database based on a PropelDatabaseDiff instance