Files
ferrovia-panel/supabase/migrations/20260610140500_add_quais_hall_column.sql
2026-08-25 01:23:13 +02:00

8 lines
328 B
SQL

-- MIGRATION : Ajout de la colonne quais_hall (JSONB) dans la table gares
ALTER TABLE public.gares
ADD COLUMN IF NOT EXISTS quais_hall JSONB DEFAULT '{"hall": {}}'::jsonb;
COMMENT ON COLUMN public.gares.quais_hall IS
'Association des quais aux halls sous forme JSON : {"hall": {"Nom du Hall": ["Quai 1", "Quai 2"]}}';