new balance

This commit is contained in:
2019-06-25 12:37:09 +03:00
parent a783be26d1
commit 2f4f92bdec
16 changed files with 523 additions and 58 deletions

View File

@ -0,0 +1,47 @@
<?php
use yii\db\Migration;
/**
* Class m190622_195218_fields_value_new
*/
class m190622_195218_fields_value_new extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->createTable('fields_value_new',[
'id' => $this->primaryKey(),
'field_id' => $this->integer(11)->notNull(),
'item_id' => $this->integer(11)->notNull(),
'item_type' => $this->integer(4)->notNull(),
'order' => $this->integer(11),
'value' => $this->text(),
]);
}
/**
* {@inheritdoc}
*/
public function safeDown()
{
$this->dropTable('fields_value_new');
}
/*
// Use up()/down() to run migration code without a transaction.
public function up()
{
}
public function down()
{
echo "m190622_195218_fields_value_new cannot be reverted.\n";
return false;
}
*/
}