console\controllers\MigrateController::createMigrationHistoryTable PHP Метод

createMigrationHistoryTable() защищенный Метод

Creates the migration history table.
    protected function createMigrationHistoryTable()
    {
        $tableName = $this->db->schema->getRawTableName($this->migrationTable);
        echo "Creating migration history table \"{$tableName}\"...";
        $this->db->createCommand()->createTable($this->migrationTable, ['version' => 'varchar(180) NOT NULL PRIMARY KEY', 'alias' => 'varchar(180) NOT NULL', 'apply_time' => 'integer'])->execute();
        $this->db->createCommand()->insert($this->migrationTable, ['version' => self::BASE_MIGRATION, 'alias' => $this->migrationPath, 'apply_time' => time()])->execute();
        echo "done.\n";
    }