How to add a new column to an existing database table with unique and not null constraint – Postgresql
I have a users table, with the primary key being an id field, which is an autoincrementing integer. I don't have a username field right now, but I would like to add one. Now, the username should be UNIQUE and…