21 lines
810 B
SQL
21 lines
810 B
SQL
-- ============================================================================
|
|
-- MIGRATION : Ajout de la colonne quais_hall (JSONB) dans la table gares
|
|
-- Date : 2026-06-10
|
|
-- Description : Stocke l'association entre les halls et les quais au format JSON.
|
|
-- Structure :
|
|
-- {
|
|
-- "hall": {
|
|
-- "Nom du hall": ["Voie A", "Voie B"]
|
|
-- }
|
|
-- }
|
|
--
|
|
-- ⚠️ À EXÉCUTER dans l'éditeur SQL Supabase :
|
|
-- https://supabase.com/dashboard → votre projet → SQL Editor
|
|
-- ============================================================================
|
|
|
|
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"]}}';
|