ALTER TABLE traveltime_delegations ADD COLUMN active BIT DEFAULT 1;

ALTER TABLE traveltime_delegations CHANGE date_from date_from DATE NULL;
ALTER TABLE traveltime_delegations CHANGE date_to date_to DATE NULL;

ALTER TABLE traveltime_delegations ADD id INT NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST;