START TRANSACTION;

ALTER TABLE `customer_membership`
    ADD COLUMN `end_date` DATETIME NULL DEFAULT NULL AFTER `start_date`;

UPDATE configuration set config_value = "1.2.7", date_change=CURRENT_DATE WHERE config_key = "db_version";

COMMIT;