-- liquibase formatted sql
-- changeset ai:add_indexes_for_ps

--precondition-sql-check expectedResult:0 SELECT COUNT(*) FROM information_schema.STATISTICS WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'production_schedule' AND INDEX_NAME = 'idx_production_schedule_produceAt'
CREATE INDEX idx_production_schedule_produceAt ON production_schedule (produceAt);

--precondition-sql-check expectedResult:0 SELECT COUNT(*) FROM information_schema.STATISTICS WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'production_schedule_line' AND INDEX_NAME = 'idx_production_schedule_line_prodScheduleId'
CREATE INDEX idx_production_schedule_line_prodScheduleId ON production_schedule_line (prodScheduleId);

