-- Rev number (Mandatory)
SET @revNum = 505;
SET @issue = "issue-31-fr";

START TRANSACTION;
-- ------------------------------------------------
-- Begin SQL
-- ------------------------------------------------
-- COTE SITES WEB FR SEULEMENT !!!!!
UPDATE vz_participant_resa SET assurance = "0" WHERE assurance = "-1";
UPDATE vz_participant_resa SET assurance = "0" WHERE assurance = "";
UPDATE vz_participant_resa SET assurance = "-1" WHERE assurance = "Non merci";
UPDATE vz_participant_resa SET assurance = "5" WHERE assurance = "Annulation_COV";
UPDATE vz_participant_resa SET assurance = "1" WHERE assurance = "Etendue";
UPDATE vz_participant_resa SET assurance = "4" WHERE assurance = "Multi_COV";
UPDATE vz_participant_resa SET assurance = "2" WHERE assurance = "Premium";
UPDATE vz_participant_resa SET assurance = "3" WHERE assurance = "Premium_CB";
UPDATE vz_participant_resa SET assurance = "6" WHERE assurance = "Rapatriement_COV";

ALTER TABLE vz_participant_resa MODIFY COLUMN assurance SMALLINT DEFAULT 0 NOT NULL;

-- ------------------------------------------------
-- End SQL
-- ------------------------------------------------

INSERT INTO `db_version` (`uid`, `major_version`, `minor_version`, `revision`, `Comment`, `date`)
 VALUES (NULL, '1', '1', @revNum, @issue, CURRENT_TIME());
COMMIT;
