ALTER TABLE preferences ADD COLUMN endpoint_enabled BOOLEAN NOT NULL DEFAULT TRUE
    CHECK (endpoint_enabled IN (FALSE, TRUE));
ALTER TABLE preferences ADD COLUMN endpoint_cors BOOLEAN NOT NULL DEFAULT FALSE
    CHECK (endpoint_cors IN (FALSE, TRUE));
