add wate to inventory

This commit is contained in:
2017-04-27 20:53:35 +02:00
parent ec5968511b
commit 567592b73e
6 changed files with 164 additions and 37 deletions

View File

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