--liquibase formatted sql

--changeset derek:update stock in, restore datalogId fk
ALTER TABLE `stock_in`
ADD CONSTRAINT FK_STOCK_IN_ON_M18DATALOGID FOREIGN KEY (m18DataLogId) REFERENCES m18_data_log (id),
MODIFY COLUMN `m18DataLogId` INT NULL;