add rfid_key to card and key

This commit is contained in:
2015-12-28 21:03:52 +01:00
parent f6b483a9f9
commit 3b2f19b909
18 changed files with 108 additions and 11 deletions

View File

@@ -7,7 +7,7 @@ class m151208_212339_alter__table__customer__add__column__key extends Migration
{
public function up()
{
$this->addColumn("customer", "id_key", "int");
$this->addColumn("key", "id_key", "int");
}
public function down()

View File

@@ -0,0 +1,30 @@
<?php
use yii\db\Schema;
use yii\db\Migration;
class m151228_162443_alter__table__key__add__column__rfid__number extends Migration
{
public function up()
{
$this->addColumn("key", "rfid_key", "varchar(25)");
}
public function down()
{
echo "m151228_162443_alter__table__key__add__column__rfid__number 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,30 @@
<?php
use yii\db\Schema;
use yii\db\Migration;
class m151228_172909_alter__table__card__add__column__rfid__number extends Migration
{
public function up()
{
$this->addColumn("card", "rfid_key", "varchar(25)");
}
public function down()
{
echo "m151228_172909_alter__table__card__add__column__rfid__number cannot be reverted.\n";
return false;
}
/*
// Use safeUp/safeDown to run migration code within a transaction
public function safeUp()
{
}
public function safeDown()
{
}
*/
}