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