ALTER TABLE `tasks` CHANGE `id` `Id` INT( 11 ) NOT NULL AUTO_INCREMENT ;

ALTER TABLE `tasks` DROP `ExportSetting` ;
ALTER TABLE `tasks` ADD `Export` INT NOT NULL ;
ALTER TABLE `tasks` ADD INDEX ( `Export` ) ;
ALTER TABLE `tasks` DROP `Active` ;
ALTER TABLE `tasks` CHANGE `Date` `TimeStart` DATETIME NOT NULL ;
ALTER TABLE `tasks` ADD `TimeFinish` DATETIME NULL AFTER `TimeStart` ;
ALTER TABLE `tasks` DROP `Downloaded` ;

RENAME TABLE `tasks`  TO `ExportTask` ;
ALTER TABLE `ExportTask` DROP `User` ;