<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE data SYSTEM "../../../lib/pkp/dtd/xmlData.dtd">

<!--
  * 2.4.0_idupdate_article_galleys.xml
  *
  * Copyright (c) 2013-2016 Simon Fraser University Library
  * Copyright (c) 2003-2016 John Willinsky
  * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
  *
  * 2.4.0 id update pre-migration script, run prior to schema sync.
  *
  -->

<data>
	<!-- Prepare migration of public ids and DOIs to settings tables -->
	<sql>
		<query>CREATE TABLE tmp_public_galley_ids AS SELECT galley_id, public_galley_id FROM article_galleys</query>
		
		<query driver="postgres7">
			DROP INDEX article_galleys_article_id
		</query>
	</sql>
</data>
