Files
fm_be/migrations/20260424_hospital_contacts_notes.sql
2026-07-16 22:16:45 +07:00

74 lines
1.6 KiB
SQL

-- +goose Up
ALTER TABLE hospitals
ADD COLUMN IF NOT EXISTS note TEXT NULL;
ALTER TABLE icaos
ADD COLUMN IF NOT EXISTS note TEXT NULL;
ALTER TABLE health_insurance_companies
ADD COLUMN IF NOT EXISTS note TEXT NULL;
ALTER TABLE federal_states
ADD COLUMN IF NOT EXISTS note TEXT NULL;
ALTER TABLE lands
ADD COLUMN IF NOT EXISTS note TEXT NULL;
ALTER TABLE nationalities
ADD COLUMN IF NOT EXISTS note TEXT NULL;
ALTER TABLE pilot_profiles
ADD COLUMN IF NOT EXISTS note TEXT NULL;
ALTER TABLE doctor_profiles
ADD COLUMN IF NOT EXISTS note TEXT NULL;
ALTER TABLE air_rescuer_profiles
ADD COLUMN IF NOT EXISTS note TEXT NULL;
ALTER TABLE technician_profiles
ADD COLUMN IF NOT EXISTS note TEXT NULL;
ALTER TABLE flight_assistant_profiles
ADD COLUMN IF NOT EXISTS note TEXT NULL;
ALTER TABLE staff_profiles
ADD COLUMN IF NOT EXISTS note TEXT NULL;
-- +goose Down
ALTER TABLE hospitals
DROP COLUMN IF EXISTS note;
ALTER TABLE icaos
DROP COLUMN IF EXISTS note;
ALTER TABLE health_insurance_companies
DROP COLUMN IF EXISTS note;
ALTER TABLE federal_states
DROP COLUMN IF EXISTS note;
ALTER TABLE lands
DROP COLUMN IF EXISTS note;
ALTER TABLE nationalities
DROP COLUMN IF EXISTS note;
ALTER TABLE pilot_profiles
DROP COLUMN IF EXISTS note;
ALTER TABLE doctor_profiles
DROP COLUMN IF EXISTS note;
ALTER TABLE air_rescuer_profiles
DROP COLUMN IF EXISTS note;
ALTER TABLE technician_profiles
DROP COLUMN IF EXISTS note;
ALTER TABLE flight_assistant_profiles
DROP COLUMN IF EXISTS note;
ALTER TABLE staff_profiles
DROP COLUMN IF EXISTS note;