Commit 9268e7d3 by sergey Gonimar

message fix

parent 2c02bc91
...@@ -318,7 +318,7 @@ class Migration extends \yii\base\Component ...@@ -318,7 +318,7 @@ class Migration extends \yii\base\Component
*/ */
public function addPrimaryKey($name, $table, $columns) 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); $time = microtime(true);
$this->db->createCommand()->addPrimaryKey($name, $table, $columns)->execute(); $this->db->createCommand()->addPrimaryKey($name, $table, $columns)->execute();
echo " done (time: " . sprintf('%.3f', microtime(true) - $time) . "s)\n"; echo " done (time: " . sprintf('%.3f', microtime(true) - $time) . "s)\n";
......
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