PSQL Gere ID no banco de dados existente
ALTER TABLE test1 ADD COLUMN id SERIAL PRIMARY KEY;
Clear Cow
ALTER TABLE test1 ADD COLUMN id SERIAL PRIMARY KEY;