diff --git a/console/migrations/m230914_062843_alter_table_door_log_manager_make_updated_at_nullable_and_default.php b/console/migrations/m230914_062843_alter_table_door_log_manager_make_updated_at_nullable_and_default.php new file mode 100644 index 0000000..8f00bb5 --- /dev/null +++ b/console/migrations/m230914_062843_alter_table_door_log_manager_make_updated_at_nullable_and_default.php @@ -0,0 +1,42 @@ +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; + } + */ +}