Alter a MySQL column to be AUTO_INCREMENT
Roman is right, but note that the auto_increment column must be part of the PRIMARY KEY or a UNIQUE KEY (and in almost 100% of the cases, it should be the only column that makes up the PRIMARY KEY):
ALTER TABLE document MODIFY document_id INT AUTO_INCREMENT PRIMARY KEY
ALTER TABLE document MODIFY COLUMN document_id INT auto_increment