You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
444 B
27 lines
444 B
<?php
|
|
|
|
use yii\db\Migration;
|
|
|
|
/**
|
|
* Class m191111_095158_create_table_goods
|
|
*/
|
|
class m191111_095158_create_table_goods extends Migration
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function up()
|
|
{
|
|
$sql = file_get_contents(__DIR__."/sql/goods.sql");
|
|
$this->execute($sql);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function down()
|
|
{
|
|
$this->dropTable("ats_goods");
|
|
return true;
|
|
}
|
|
}
|