Files
Wallos/migrations/000040.php
Miguel Ribeiro 27ac805141 feat: make container shutdown instant & graceful
feat: make container shutdown instant & graceful  (#916)
feat: add pushplus notification service  (#911)
feat: option to delete ai recommendations
fix: parsing ai recommendations from gemini (#909)
2025-09-14 16:46:42 +02:00

14 lines
495 B
PHP

<?php
// This migration adds a pushplus_notifications table to store PushPlus notification settings.
$tableQuery = $db->query("SELECT name FROM sqlite_master WHERE type='table' AND name='pushplus_notifications'");
$tableExists = $tableQuery->fetchArray(SQLITE3_ASSOC);
if ($tableExists === false) {
$db->exec("
CREATE TABLE pushplus_notifications (
enabled INTEGER NOT NULL DEFAULT 0,
token TEXT,
user_id INTEGER
);
");
}