-- liquibase formatted sql
-- changeset enson:altertable_enson

ALTER TABLE `fpsmsdb`.`pick_execution_issue` 
DROP FOREIGN KEY `FK_PICK_EXECUTION_ISSUE_ON_PICK_ORDER`,
DROP FOREIGN KEY `FK_PICK_EXECUTION_ISSUE_ON_PICK_ORDER_LINE`;
ALTER TABLE `fpsmsdb`.`pick_execution_issue` 
CHANGE COLUMN `pick_order_id` `pick_order_id` INT NULL ,
CHANGE COLUMN `pick_order_code` `pick_order_code` VARCHAR(50) NULL ,
CHANGE COLUMN `pick_order_line_id` `pick_order_line_id` INT NULL ;
ALTER TABLE `fpsmsdb`.`pick_execution_issue` 
ADD CONSTRAINT `FK_PICK_EXECUTION_ISSUE_ON_PICK_ORDER`
  FOREIGN KEY (`pick_order_id`)
  REFERENCES `fpsmsdb`.`pick_order` (`id`),
ADD CONSTRAINT `FK_PICK_EXECUTION_ISSUE_ON_PICK_ORDER_LINE`
  FOREIGN KEY (`pick_order_line_id`)
  REFERENCES `fpsmsdb`.`pick_order_line` (`id`);
