-- liquibase formatted sql
-- changeset 2fi:20260504_01_truck_add_logistic_id
-- preconditions onFail:MARK_RAN
-- precondition-sql-check expectedResult:0 SELECT COUNT(*) FROM information_schema.columns WHERE table_schema = DATABASE() AND table_name = 'truck' AND column_name = 'logisticId'

ALTER TABLE `truck`
    ADD COLUMN `logisticId` INT NULL;

ALTER TABLE `truck`
    ADD CONSTRAINT `fk_truck_logistic` FOREIGN KEY (`logisticId`) REFERENCES `logistic` (`id`);
