ALTER TABLE settings
    ADD COLUMN IF NOT EXISTS group_id INTEGER,
    ADD COLUMN IF NOT EXISTS user_id INTEGER;
CREATE INDEX IF NOT EXISTS settings_group_idx ON settings(group_id);
CREATE INDEX IF NOT EXISTS settings_user_idx ON settings(user_id);
