Browse Source

Fixed foreign key generation bug for pgsql.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
7303bae382
  1. 2
      framework/yii/db/pgsql/Schema.php

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

@ -200,7 +200,7 @@ SQL;
}
$citem = array($foreignTable);
foreach ($columns as $idx => $column) {
$citem[] = array($fcolumns[$idx] => $column);
$citem[$fcolumns[$idx]] = $column;
}
$table->foreignKeys[] = $citem;
}

Loading…
Cancel
Save