Finish account_state_non_cash

This commit is contained in:
2016-10-23 20:41:52 +02:00
34 changed files with 1103 additions and 316 deletions

View File

@@ -99,8 +99,11 @@ class DetstaConsoleController extends Controller
$content = $detsta->toString();
file_put_contents('c:\tmp\detsta.txt', $content);
$fn = 'c:\tmp\detsta.txt';
file_put_contents($fn , $content);
echo "File saved: " . $fn;
}
/**

View File

@@ -0,0 +1,30 @@
<?php
use yii\db\Schema;
use yii\db\Migration;
class m161004_062500_alter__table__account_state_add_column_non_cash_money extends Migration
{
public function up()
{
$this->addColumn("account_state", "non_cash_money", "int default 0");
}
public function down()
{
echo "m161004_062500_alter__table__account_state_add_column_non_cash_money cannot be reverted.\n";
return false;
}
/*
// Use safeUp/safeDown to run migration code within a transaction
public function safeUp()
{
}
public function safeDown()
{
}
*/
}

View File

@@ -0,0 +1,29 @@
<?php
use yii\db\Schema;
use yii\db\Migration;
class m161017_054129_alter__table__customer__add__column_towel_count extends Migration
{
public function up()
{
$this->addColumn("customer", "towel_count", "int default 0");
}
public function down()
{
echo "m161017_054129_alter__table__customer__add__column_towel_count cannot be reverted.\n";
return false;
}
/*
// Use safeUp/safeDown to run migration code within a transaction
public function safeUp()
{
}
public function safeDown()
{
}
*/
}