From 7c9433be5d7b47fe312fb3a667d869ee0e8902ad Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 3 Jun 2025 05:37:37 +0100 Subject: [PATCH] Added migration to fix existing wonky data Signed-off-by: snipe --- ..._fix_assigned_type_without_assigned_to.php | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 database/migrations/2025_06_03_053438_fix_assigned_type_without_assigned_to.php diff --git a/database/migrations/2025_06_03_053438_fix_assigned_type_without_assigned_to.php b/database/migrations/2025_06_03_053438_fix_assigned_type_without_assigned_to.php new file mode 100644 index 0000000000..9d6a1c8046 --- /dev/null +++ b/database/migrations/2025_06_03_053438_fix_assigned_type_without_assigned_to.php @@ -0,0 +1,23 @@ +whereNotNull('assigned_type')->whereNull('assigned_to')->update(['assigned_type' => null]); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + + } +};