From 40f717cad9b54511d6d4c0d549fd253409f8dd12 Mon Sep 17 00:00:00 2001
From: marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>
Date: Thu, 6 Nov 2008 16:33:49 +0000
Subject: datalists now has primary key, datalist set function optimised

git-svn-id: https://code.elgg.org/elgg/trunk@2417 36083f99-b078-4883-b0ff-0f9b5a30f544
---
 engine/schema/upgrades/2008110601.sql | 3 +++
 1 file changed, 3 insertions(+)
 create mode 100644 engine/schema/upgrades/2008110601.sql

(limited to 'engine/schema/upgrades/2008110601.sql')

diff --git a/engine/schema/upgrades/2008110601.sql b/engine/schema/upgrades/2008110601.sql
new file mode 100644
index 000000000..ddd80a91b
--- /dev/null
+++ b/engine/schema/upgrades/2008110601.sql
@@ -0,0 +1,3 @@
+-- Alter datalists to have a primary key
+ALTER TABLE `prefix_datalists` DROP KEY `name`;
+ALTER TABLE `prefix_datalists` ADD PRIMARY KEY `name` (`name`);
-- 
cgit v1.2.3

