add_balance

This commit is contained in:
SoHardKI
2019-06-21 18:05:58 +03:00
parent 0727013ddd
commit 1b088402df
313 changed files with 543 additions and 25 deletions

0
console/migrations/m130524_201442_init.php Normal file → Executable file
View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

0
console/migrations/m181121_103329_create_hh_table.php Normal file → Executable file
View File

View File

View File

@ -0,0 +1,45 @@
<?php
use yii\db\Migration;
/**
* Class m190621_094843_add_balance
*/
class m190621_094843_add_balance extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->createTable('balance',[
'id' => $this->primaryKey(),
'type' => $this->integer(1),
'summ' => $this->integer(4),
'dt_add' => $this->integer(11),
]);
}
/**
* {@inheritdoc}
*/
public function safeDown()
{
$this->dropTable('balance');
}
/*
// Use up()/down() to run migration code without a transaction.
public function up()
{
}
public function down()
{
echo "m190621_094843_add_balance cannot be reverted.\n";
return false;
}
*/
}