summaryrefslogtreecommitdiff
path: root/migrations/012_feature_toggles.sql
blob: db74588566b732aee5dd01183c44ac080b2a06d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
-- Feature toggles for gradual rollout and experimentation
CREATE TABLE IF NOT EXISTS feature_toggles (
    id INTEGER PRIMARY KEY AUTOINCREMENT,
    name TEXT NOT NULL UNIQUE,
    description TEXT,
    enabled INTEGER NOT NULL DEFAULT 0,
    created_at TEXT NOT NULL DEFAULT (datetime('now', 'localtime')),
    updated_at TEXT NOT NULL DEFAULT (datetime('now', 'localtime'))
);

-- Insert some initial toggles
INSERT OR IGNORE INTO feature_toggles (name, description, enabled) VALUES
    ('source_config', 'Configure which boards/lists/calendars to fetch from each source', 0),
    ('calendar_timeline', 'Show timeline as a calendar view with time slots', 0),
    ('completed_log', 'Track and display completed tasks log', 1);