-- +goose Up CREATE TABLE IF NOT EXISTS crowdsec_settings ( id INTEGER PRIMARY KEY DEFAULT 1 CHECK (id = 1), enabled BOOLEAN NOT NULL DEFAULT false, simulation_mode BOOLEAN NOT NULL DEFAULT false, collections TEXT[] NOT NULL DEFAULT '{"crowdsecurity/linux","crowdsecurity/haproxy"}', updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW() ); INSERT INTO crowdsec_settings (id) VALUES (1) ON CONFLICT DO NOTHING; -- +goose Down DROP TABLE IF EXISTS crowdsec_settings;