-- Migration v0.8 : Mode relay DHCP (DHCP relay via core switch)
-- Ajoute relay_address par subnet + paramètres globaux relay_mode et relay_interface

ALTER TABLE app_subnets
    ADD COLUMN relay_address VARCHAR(45) NULL AFTER gateway;

INSERT IGNORE INTO app_settings (setting_key, setting_value) VALUES
    ('relay_mode',      '0'),
    ('relay_interface', '');
