Commit b8558a86 by Carsten Brandt

fixed migrate command output

parent ca778336
...@@ -592,7 +592,8 @@ class MigrateController extends Controller ...@@ -592,7 +592,8 @@ class MigrateController extends Controller
*/ */
protected function createMigrationHistoryTable() protected function createMigrationHistoryTable()
{ {
echo 'Creating migration history table "' . $this->migrationTable . '"...'; $tableName = $this->db->schema->getRawTableName($this->migrationTable);
echo "Creating migration history table \"$tableName\"...";
$this->db->createCommand()->createTable($this->migrationTable, [ $this->db->createCommand()->createTable($this->migrationTable, [
'version' => 'varchar(180) NOT NULL PRIMARY KEY', 'version' => 'varchar(180) NOT NULL PRIMARY KEY',
'apply_time' => 'integer', 'apply_time' => 'integer',
......
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