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

<!--
  * 2.4.0_notifications.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 database updates XML file; Renames the notification* tables for migration.
  *
  -->

<data>
	<!-- Bug #6792: Notification overhaul -->
	<sql>
		<rename table="notifications" to="notifications_old" />
		<query driver="mysql">
			RENAME TABLE notification_settings TO notification_settings_old
		</query>
		<query driver="postgres7">
			SELECT setting_id, setting_name, setting_value, user_id, product, context INTO notification_settings_old FROM notification_settings
		</query>
		<query driver="postgres7">
			DROP TABLE notification_settings
		</query>
	</sql>
</data>
