-- Migration: 112_locations_add_room_types
-- Created: 2026-02-08
-- Description: Add kantine and moedelokale to location_type allowed values

BEGIN;

ALTER TABLE locations_locations
    DROP CONSTRAINT IF EXISTS locations_locations_location_type_check;

ALTER TABLE locations_locations
    ADD CONSTRAINT locations_locations_location_type_check
    CHECK (location_type IN (
        'kompleks',
        'bygning',
        'etage',
        'customer_site',
        'rum',
        'kantine',
        'moedelokale',
        'vehicle'
    ));

COMMIT;
