Browse Source

message fix

tags/2.0.0-beta
sergey Gonimar 12 years ago
parent
commit
9268e7d3ac
  1. 2
      framework/yii/db/Migration.php

2
framework/yii/db/Migration.php

@ -318,7 +318,7 @@ class Migration extends \yii\base\Component
*/
public function addPrimaryKey($name, $table, $columns)
{
echo " > add primary key $name on $table (".is_array($columns) ? implode(',',$columns) : $columns.") ...";
echo " > add primary key $name on $table (".(is_array($columns) ? implode(',',$columns) : $columns).") ...";
$time = microtime(true);
$this->db->createCommand()->addPrimaryKey($name, $table, $columns)->execute();
echo " done (time: " . sprintf('%.3f', microtime(true) - $time) . "s)\n";

Loading…
Cancel
Save