<?php use yii\db\Migration; /** * Class m191111_102730_create_table_city */class m191111_102730_create_table_city extends Migration{ /** * {@inheritdoc} */ public function up() { $sql = file_get_contents(__DIR__."/sql/city.sql"); $this->execute($sql); } /** * {@inheritdoc} */ public function down() { $this->dropTable("city"); return true; }}
<?php
use yii\db\Migration;
/**
* Class m191111_102730_create_table_city
*/
class m191111_102730_create_table_city extends Migration
{
* {@inheritdoc}
public function up()
$sql = file_get_contents(__DIR__."/sql/city.sql");
$this->execute($sql);
}
public function down()
$this->dropTable("city");
return true;