Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jacobSingh/380666 to your computer and use it in GitHub Desktop.
Save jacobSingh/380666 to your computer and use it in GitHub Desktop.
From 9d0cea740a38574359b229ba26fbdbd29b757bab Mon Sep 17 00:00:00 2001
From: dries <dries>
Date: Fri, 9 Apr 2010 12:07:12 +0000
Subject: [PATCH] - Patch #640880 by mr.baileys: upgrade path for making {image_styles()}.name column unique.
---
modules/image/image.install | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/image/image.install b/modules/image/image.install
index 52289d0..9bd4b8b 100644
--- a/modules/image/image.install
+++ b/modules/image/image.install
@@ -1,5 +1,5 @@
<?php
-// $Id: image.install,v 1.7 2010/04/06 14:55:17 dries Exp $
+// $Id: image.install,v 1.8 2010/04/09 12:07:12 dries Exp $
/**
* @file
@@ -132,7 +132,7 @@ function image_update_7000() {
),
),
'primary key' => array('isid'),
- 'indexes' => array(
+ 'unique keys' => array(
'name' => array('name'),
),
);
--
1.6.4+GitX
@jacobSingh
Copy link
Author

Do we need to provide an upgrade path here? Will be a serious edge case if someone did this, but you never know...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment