fix: migrate boolean columns to tinyint(1)

These columns were previously tiny ints without the (1) display width or regular ints, or smallints. They should all be tinyint(1).
This commit is contained in:
Roardom
2025-02-17 08:22:54 +00:00
parent ddd9ce7220
commit b2e29cfcf0
31 changed files with 143 additions and 58 deletions
+2
View File
@@ -157,10 +157,12 @@ class Comment extends Component
if ($this->user->id !== $ticket->staff_id && $ticket->staff_id !== null) {
User::find($ticket->staff_id)->notify(new NewComment($this->model, $reply));
$this->model->update(['staff_read' => false]);
}
if ($this->user->id !== $ticket->user_id) {
User::find($ticket->user_id)->notify(new NewComment($this->model, $reply));
$this->model->update(['user_read' => false]);
}
if (!\in_array($this->comment->user_id, [$ticket->staff_id, $ticket->user_id, $this->user->id])) {