44 lines
782 B
PHP
Executable File
44 lines
782 B
PHP
Executable File
<?php
|
|
|
|
use yii\db\Migration;
|
|
|
|
/**
|
|
* Class m221023_173829_add_table_virtual_key
|
|
*/
|
|
class m221023_173829_add_table_virtual_key extends Migration
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function safeUp()
|
|
{
|
|
$this->dropColumn("virtual_key",'valid_until');
|
|
$this->dropColumn("virtual_key",'direction_out_at');
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function safeDown()
|
|
{
|
|
echo "m221023_173829_add_table_virtual_key cannot be reverted.\n";
|
|
|
|
return false;
|
|
}
|
|
|
|
/*
|
|
// Use up()/down() to run migration code without a transaction.
|
|
public function up()
|
|
{
|
|
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
echo "m221023_173829_add_table_virtual_key cannot be reverted.\n";
|
|
|
|
return false;
|
|
}
|
|
*/
|
|
}
|