INSERT INTO article_supp_file_settings (supp_id, setting_name, setting_value, setting_type, locale) SELECT supp_id, 'pub-id::publisher-id', public_supp_file_id, 'string', '' FROM article_supplementary_files DROP INDEX article_supplementary_files_file_id DROP INDEX article_supplementary_files_article_id