-- P5-6177 Add fallback to locales table

ALTER TABLE locales ADD COLUMN fallback_id INTEGER;

ALTER TABLE locales
    ADD CONSTRAINT fallback_locale_fkey
    FOREIGN KEY (fallback_id)
    REFERENCES locales(id) MATCH SIMPLE;

