Skip to content

Commit

Permalink
Added the update queries to fix possible nullable values of the objec…
Browse files Browse the repository at this point in the history
…t categories.
  • Loading branch information
ruslanbaidan committed Nov 12, 2024
1 parent 919678c commit c6878b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions migrations/db/20230901112005_fix_positions_cleanup_db.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,9 @@ public function change()
->dropForeignKey('anr_id')
->removeColumn('anr_id')
->save();
$this->execute('UPDATE objects_categories SET label2 = "" WHERE label2 IS NULL');
$this->execute('UPDATE objects_categories SET label3 = "" WHERE label3 IS NULL');
$this->execute('UPDATE objects_categories SET label4 = "" WHERE label4 IS NULL');
$this->table('objects_categories')
->dropForeignKey('anr_id')
->removeColumn('anr_id')
Expand Down

0 comments on commit c6878b7

Please sign in to comment.