3
CREATE SEQUENCE login_unixid_seq MINVALUE 1000 MAXVALUE 29999 START WITH 5000;
4
ALTER TABLE login ALTER COLUMN unixid SET DEFAULT nextval('login_unixid_seq');
5
ALTER SEQUENCE login_unixid_seq OWNED BY login.unixid;
7
UPDATE login SET unixid = nextval('login_unixid_seq');