veza/veza-backend-api/migrations/935_feature_flags.sql

14 lines
577 B
SQL

-- v0.803 ADM1-05: Feature flags with DB persistence
CREATE TABLE IF NOT EXISTS feature_flags (
name VARCHAR(100) PRIMARY KEY,
enabled BOOLEAN NOT NULL DEFAULT false,
description TEXT,
updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
);
INSERT INTO feature_flags (name, enabled, description) VALUES
('HLS_STREAMING', true, 'Enable HLS streaming'),
('ROLE_MANAGEMENT', true, 'Enable role management'),
('PLAYLIST_SHARE', true, 'Enable playlist sharing'),
('PLAYLIST_RECOMMENDATIONS', true, 'Enable playlist recommendations')
ON CONFLICT (name) DO NOTHING;