Con Postgres 9.6 è possibile usando l'opzione if not exists:
ALTER TABLE table_name
ADD COLUMN IF NOT EXISTS column_name INTEGER;
Con Postgres 9.6 è possibile usando l'opzione if not exists:
ALTER TABLE table_name
ADD COLUMN IF NOT EXISTS column_name INTEGER;