salix/db/versions/.archive/10571-navyCyca/00-firstScript.sql

9 lines
452 B
MySQL
Raw Normal View History

-- Place your SQL code here
ALTER TABLE `postgresql`.`journey` RENAME `vn`.`businessSchedule`;
ALTER TABLE `vn`.`businessSchedule`
CHANGE COLUMN `journey_id` `id` int(11) NOT NULL AUTO_INCREMENT,
CHANGE COLUMN `day_id` `weekday` smallint(6) NOT NULL DEFAULT 1 COMMENT 'Lunes = 1 \nDomingo = 7',
CHANGE COLUMN `start` `started` time DEFAULT NULL,
CHANGE COLUMN `end` `ended` time DEFAULT NULL,
CHANGE COLUMN `business_id` `businessFk` int(11) NOT NULL;