fix: make schema.sql fully idempotent — add IF NOT EXISTS to all CREATE INDEX, CREATE TRIGGER, and CREATE VIEW statements

This commit is contained in:
Pontoporeia
2026-05-11 10:31:19 +02:00
parent 973444bdbb
commit 28ef35dce5
5 changed files with 66 additions and 42 deletions

View File

@@ -284,8 +284,7 @@ deploy-backup: deploy-backup-script deploy-backup-cron
[group('deploy')]
deploy-check-backup-log:
# Show the last 20 lines of the SQLite backup log on the server.
ssh -t xamxam "sudo tail -20 /var/log/sqlite-backup.log 2>/dev/null || echo '(log file empty or missing — will be created on first cron run)'"
ssh xamxam "tail -20 /var/log/sqlite-backup.log 2>/dev/null || echo '(log file empty or missing — will be created on first cron run)'"
[group('deploy')]
deploy-list-backups: