START TRANSACTION;

ALTER TABLE bot_service_configuration
ADD COLUMN key short_text NOT NULL DEFAULT 'default';

ALTER TABLE bot_service_configuration
ADD COLUMN bot_campaign_group_id BIGINT REFERENCES bot_campaign_group (id);

DROP INDEX bot_service_configuration_key_location_not_null;

DROP INDEX bot_service_configuration_key_location_null;

COMMIT;
