--liquibase formatted sql
--changeset fai:20260512_m18_bom_shop_sync_settings

INSERT INTO `settings` (`name`, `value`, `category`, `type`)
SELECT v.name, v.value, v.category, v.type
FROM (
    SELECT 'M18.bom.shop.sync.enabled' AS name, 'false' AS value, 'M18' AS category, 'boolean' AS type
) v
WHERE NOT EXISTS (
    SELECT 1 FROM `settings` s WHERE s.name = 'M18.bom.shop.sync.enabled'
);

INSERT INTO `settings` (`name`, `value`, `category`, `type`)
SELECT v.name, v.value, v.category, v.type
FROM (
    SELECT 'M18.bom.shop.sync.allowedBomIds' AS name, '78,274' AS value, 'M18' AS category, 'string' AS type
) v
WHERE NOT EXISTS (
    SELECT 1 FROM `settings` s WHERE s.name = 'M18.bom.shop.sync.allowedBomIds'
);
