Browse Source

coding style fix.

tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
864bf93679
  1. 7
      framework/yii/db/pgsql/Schema.php

7
framework/yii/db/pgsql/Schema.php

@ -165,11 +165,11 @@ SQL;
$columns = explode(',', $constraint['columns']);
$fcolumns = explode(',', $constraint['foreign_columns']);
if ($constraint['foreign_table_schema'] !== $this->defaultSchema) {
$foreign_table = $constraint['foreign_table_schema'] . '.' . $constraint['foreign_table_name'];
$foreignTable = $constraint['foreign_table_schema'] . '.' . $constraint['foreign_table_name'];
} else {
$foreign_table = $constraint['foreign_table_name'];
$foreignTable = $constraint['foreign_table_name'];
}
$citem = array($foreign_table);
$citem = array($foreignTable);
foreach ($columns as $idx => $column) {
$citem[] = array($fcolumns[$idx] => $column);
}
@ -285,5 +285,4 @@ SQL;
$column->phpType = $this->getColumnPhpType($column);
return $column;
}
}

Loading…
Cancel
Save