diff --git a/resources/db_update_scripts/current.sql b/resources/db_update_scripts/current.sql index f6d6f51027..e69de29bb2 100755 --- a/resources/db_update_scripts/current.sql +++ b/resources/db_update_scripts/current.sql @@ -1,3 +0,0 @@ -ALTER TABLE NotificationData ADD COLUMN `request_id` bigint(20) DEFAULT NULL; -ALTER TABLE NotificationData ADD KEY `FK2DCAC3558D40D1B9` (`request_id`); -ALTER TABLE NotificationData ADD CONSTRAINT `FK2DCAC3558D40D1B9` FOREIGN KEY (`request_id`) REFERENCES `peer_request` (`id`) ON DELETE SET NULL; diff --git a/resources/db_update_scripts/db_update_20130125.sql b/resources/db_update_scripts/db_update_20130125.sql new file mode 100755 index 0000000000..f6d6f51027 --- /dev/null +++ b/resources/db_update_scripts/db_update_20130125.sql @@ -0,0 +1,3 @@ +ALTER TABLE NotificationData ADD COLUMN `request_id` bigint(20) DEFAULT NULL; +ALTER TABLE NotificationData ADD KEY `FK2DCAC3558D40D1B9` (`request_id`); +ALTER TABLE NotificationData ADD CONSTRAINT `FK2DCAC3558D40D1B9` FOREIGN KEY (`request_id`) REFERENCES `peer_request` (`id`) ON DELETE SET NULL;