[5] - fix door_manager_log updated_at make nullable

This commit is contained in:
Schneider Roland 2023-09-14 09:14:32 +02:00
parent f9de3a5908
commit a6f9ae283b

View File

@ -0,0 +1,42 @@
<?php
use yii\db\Migration;
/**
* Class m230914_062843_alter_table_door_log_manager_make_updated_at_nullable_and_default
*/
class m230914_062843_alter_table_door_log_manager_make_updated_at_nullable_and_default extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->alterColumn('door_manager_log','updated_at',$this->datetime()->null());
}
/**
* {@inheritdoc}
*/
public function safeDown()
{
echo "m230914_062843_alter_table_door_log_manager_make_updated_at_nullable_and_default cannot be reverted.\n";
return false;
}
/*
// Use up()/down() to run migration code without a transaction.
public function up()
{
}
public function down()
{
echo "m230914_062843_alter_table_door_log_manager_make_updated_at_nullable_and_default cannot be reverted.\n";
return false;
}
*/
}