Skip to content

Commit

Permalink
properties field to alerts table for voicetrack settings
Browse files Browse the repository at this point in the history
  • Loading branch information
hinanaya committed Jun 4, 2024
1 parent c4cfe82 commit 45393ac
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions updates/20240604.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ public function items()
{
$updates = [];
$updates[] = 'Add a mode field to the alerts table.';
$updates[] = 'Add a properties field to the alerts table.';

return $updates;
}
Expand All @@ -18,6 +19,12 @@ public function run()
return false;
}

$this->db->query("ALTER TABLE alerts ADD COLUMN properties TEXT AFTER mode;");
if ($this->db->error()) {
echo "Failed to add properties field.";
return false;
}

return true;
}
}

0 comments on commit 45393ac

Please sign in to comment.