postgres add column if not exists primary key code example
Example: add column if not exists postgresql
ALTER TABLE table_name ADD COLUMN IF NOT EXISTS column_name INTEGER;
ALTER TABLE table_name ADD COLUMN IF NOT EXISTS column_name INTEGER;