DELETE FROM article_files WHERE type = 'temp' UPDATE article_files SET type = 1 WHERE type = 'submission/original' UPDATE article_files SET type = 2 WHERE type = 'submission/review' UPDATE article_files SET type = 3 WHERE type = 'submission/editor' UPDATE article_files SET type = 4 WHERE type = 'submission/copyedit' UPDATE article_files SET type = 5 WHERE type = 'submission/layout' UPDATE article_files SET type = 6 WHERE type = 'supp' UPDATE article_files SET type = 7 WHERE type = 'public' UPDATE article_files SET type = 8 WHERE type = 'note' UPDATE article_files SET type = 9 WHERE type = 'attachment'