change trigger to detect move in and move out

This commit is contained in:
2016-04-18 22:14:25 +02:00
parent 01ada90e8c
commit f19c60eacd
9 changed files with 278 additions and 3 deletions

View File

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