message: migration to make fact unqiue by env-name-source
diff: @@ -1094,6 +1094,24 @@ CREATE OR REPLACE PROCEDURE
  END;
  $$
  +CREATE OR REPLACE PROCEDURE
  + update_unique_environment_fact()
  +
  + BEGIN
  + IF NOT EXISTS(
  + SELECT NULL
  + FROM INFORMATION_SCHEMA.COLUMNS
  + WHERE
  + table_name = 'environment_fact'
  + AND table_schema = 'infrastructure'
  + ) THEN
  + ALTER TABLE `environment_fact`
  + DROP INDEX `PRIMARY`
  + ADD UNIQUE (environment, name, source)
  + END IF;
  + END;
  +$$
  +
  CREATE OR REPLACE PROCEDURE
  update_user_password()
  @@ -1585,6 +1603,7 @@ CALL add_fact_source_and_description_to_environment_fact();
  CALL add_fact_type_to_environment_fact();
  CALL add_fact_category_to_environment_fact();
  CALL add_fact_key_to_environment_fact();
  +CALL update_unique_environment_fact();
  CALL add_metadata_to_project();
  CALL add_content_type_to_project_notification();
  CALL convert_project_production_routes_to_text();
  