Adicionar coluna Postgres com valor padrão
ALTER TABLE users
ADD COLUMN "priv_user" BOOLEAN DEFAULT FALSE;
Hamzeh Hanandeh
ALTER TABLE users
ADD COLUMN "priv_user" BOOLEAN DEFAULT FALSE;
ALTER TABLE <TableName> ADD COLUMN <ColumnName> <ColumnType> NOT NULL default <DefaultValue>;
ALTER TABLE customers ADD COLUMN phone integer NOT NULL default 0;
ALTER TABLE customers ADD COLUMN gender varchar(255) NULL default 'Other';