From 5c4b95ea117a495f208643958210ce3ba8939f0f Mon Sep 17 00:00:00 2001 From: Kai Date: Thu, 27 Jul 2023 15:45:21 +0200 Subject: [PATCH] fix: add notnull to welcome table (#250) --- .../Version000000Date20230727145600.php | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 lib/Migration/Version000000Date20230727145600.php diff --git a/lib/Migration/Version000000Date20230727145600.php b/lib/Migration/Version000000Date20230727145600.php new file mode 100644 index 0000000..132cdf0 --- /dev/null +++ b/lib/Migration/Version000000Date20230727145600.php @@ -0,0 +1,36 @@ +hasTable('bbb_rooms')) { + $table = $schema->getTable('bbb_rooms'); + + if ($table->hasColumn('welcome') && $table->getColumn('welcome')->getNotnull()) { + $table->getColumn('welcome')->setNotnull(false); + } + } + + return null; + } +}