Commit 01ff4b24 authored by jsor's avatar jsor

Always pass objects to platform methods and let platfom convert them to strings

parent dc86017d
......@@ -96,7 +96,7 @@ class CreateSchemaSqlCollector implements Visitor
if ($this->_platform->supportsForeignKeyConstraints()) {
$this->_createFkConstraintQueries = array_merge($this->_createFkConstraintQueries,
(array) $this->_platform->getCreateForeignKeySQL(
$fkConstraint, $localTable->getQuotedName($this->_platform)
$fkConstraint, $localTable
)
);
}
......
......@@ -143,15 +143,15 @@ class DropSchemaSqlCollector implements Visitor
$sql = array();
foreach ($this->constraints AS $fkConstraint) {
$localTable = $this->constraints[$fkConstraint];
$sql[] = $this->platform->getDropForeignKeySQL($fkConstraint->getQuotedName($this->platform), $localTable->getQuotedName($this->platform));
$sql[] = $this->platform->getDropForeignKeySQL($fkConstraint, $localTable);
}
foreach ($this->sequences AS $sequence) {
$sql[] = $this->platform->getDropSequenceSQL($sequence->getQuotedName($this->platform));
$sql[] = $this->platform->getDropSequenceSQL($sequence);
}
foreach ($this->tables AS $table) {
$sql[] = $this->platform->getDropTableSQL($table->getQuotedName($this->platform));
$sql[] = $this->platform->getDropTableSQL($table);
}
return $sql;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment