-- Migration: 071_locations_location_types
-- Created: 2026-01-31
-- Description: Extend location_type allowed values (bygning, etage, rum, vehicle)

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 (
        'bygning',
        'etage',
        'rum',
        'vehicle',
        'branch',
        'warehouse',
        'service_center',
        'client_site'
    ));

COMMIT;
