Files
domnitor/database/migrations/025_add_update_system_v1.1.3.sql
Hosteroid 3688c8b71b Add import/export and update system
Implement CSV/JSON import and export for domains, notification groups and tags (with masking for sensitive channel data), including size/format validation, in-memory CSV building, and logging. Add tag transfer and bulk transfer actions (admin-only). Introduce a new update system: Add UpdateController and UpdateService, migration 025_add_update_system_v1.1.3.sql, and installer changes to include the new migration and version handling; provide endpoints to check, apply, rollback and configure updates. Update helpers and UI bits: add getUpdateBadgeInfo in LayoutHelper, update notification icons/redirects, and add getMaxUploadSize in ViewHelper. Misc: add NotificationGroup::findByName, tweak .gitignore backups path, and update related views and routes.
2026-02-11 17:43:23 +02:00

20 lines
862 B
SQL

-- Migration: Add application update system settings
-- Version: 1.1.3
-- This migration adds settings for the GitHub-based update system:
-- update_channel (stable/latest), installed_commit_sha for hotfix tracking
-- 1. Add update channel setting (stable = releases only, latest = releases + hotfixes)
INSERT INTO settings (setting_key, setting_value, created_at, updated_at)
VALUES ('update_channel', 'stable', NOW(), NOW())
ON DUPLICATE KEY UPDATE setting_key = setting_key;
-- 2. Add update badge in menu setting (1 = show when update available, 0 = hide)
INSERT INTO settings (setting_key, setting_value, created_at, updated_at)
VALUES ('update_badge_enabled', '1', NOW(), NOW())
ON DUPLICATE KEY UPDATE setting_key = setting_key;
-- 3. Update application version to 1.1.3
UPDATE settings
SET setting_value = '1.1.3'
WHERE setting_key = 'app_version';