START TRANSACTION;

ALTER TABLE service ADD COLUMN IF NOT EXISTS uses_project_hierarchy BOOLEAN NOT NULL DEFAULT true;

UPDATE service SET uses_project_hierarchy = false WHERE key IN ('mds', 's3');

DELETE FROM property WHERE entity_key = 'usesHierarchy';

COMMIT;