refactor: consolidate email settings into the settings table and remove obsolete migration files
This commit is contained in:
@@ -43,5 +43,8 @@ CREATE TABLE IF NOT EXISTS settings (
|
||||
smtp_from text,
|
||||
smtp_secure integer NOT NULL DEFAULT 0,
|
||||
emails_per_day integer NOT NULL DEFAULT 3,
|
||||
email_enabled integer NOT NULL DEFAULT 0,
|
||||
notification_email text,
|
||||
reminder_days_before integer NOT NULL DEFAULT 7,
|
||||
updated_at integer NOT NULL DEFAULT (strftime('%s','now'))
|
||||
);
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
-- Migration 0001: strips column already exists in 0000_init.sql
|
||||
-- This file is kept for migration history compatibility
|
||||
SELECT 1;
|
||||
@@ -1,3 +0,0 @@
|
||||
-- Migration 0002: pack inventory columns already exist in 0000_init.sql
|
||||
-- This file is kept for migration history compatibility
|
||||
SELECT 1;
|
||||
@@ -1,4 +0,0 @@
|
||||
-- Add email notification settings to settings table
|
||||
ALTER TABLE settings ADD COLUMN email_enabled INTEGER NOT NULL DEFAULT 0;
|
||||
ALTER TABLE settings ADD COLUMN notification_email TEXT;
|
||||
ALTER TABLE settings ADD COLUMN reminder_days_before INTEGER NOT NULL DEFAULT 7;
|
||||
@@ -1,8 +1,5 @@
|
||||
{
|
||||
"entries": [
|
||||
{ "idx": 0, "version": 1, "when": 1734633120, "tag": "0000_init", "breakpoint": false },
|
||||
{ "idx": 1, "version": 1, "when": 1734633121, "tag": "0001_add_strips", "breakpoint": false },
|
||||
{ "idx": 2, "version": 1, "when": 1734633122, "tag": "0002_pack_inventory", "breakpoint": false },
|
||||
{ "idx": 3, "version": 1, "when": 1734710400, "tag": "0003_add_email_settings", "breakpoint": false }
|
||||
{ "idx": 0, "version": 1, "when": 1734633120, "tag": "0000_init", "breakpoint": false }
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user