ALTER TABLE `costs` ADD `project_id` INT NOT NULL AFTER `id`;
ALTER TABLE `wayet`.`costs` ADD INDEX (`project_id`);

RENAME TABLE `wayet`.`costs` TO `wayet`.`project_costs`;
