ALTER TABLE review_rounds ADD review_round_id BIGINT(20) NOT NULL AUTO_INCREMENT PRIMARY KEY; DROP INDEX review_rounds_pkey; ALTER TABLE review_rounds ADD review_round_id SERIAL; ALTER TABLE review_rounds ADD PRIMARY KEY (review_round_id);