From a9b3c2582a5a31464c0ab94fe88494fd75b4db29 Mon Sep 17 00:00:00 2001
From: Sean Dague
Date: Thu, 3 Jul 2008 19:41:01 +0000
Subject: add 3 migrations, 1 each for prims, primshapes, and primitems to move
 all their UUID stores from varchar(255) -> char(36).  Based on past evidence,
 this should help with performance.

---
 OpenSim/Data/MySQL/Resources/008_RegionStore.sql | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 OpenSim/Data/MySQL/Resources/008_RegionStore.sql

(limited to 'OpenSim/Data/MySQL/Resources/008_RegionStore.sql')

diff --git a/OpenSim/Data/MySQL/Resources/008_RegionStore.sql b/OpenSim/Data/MySQL/Resources/008_RegionStore.sql
new file mode 100644
index 0000000..7bc61c0
--- /dev/null
+++ b/OpenSim/Data/MySQL/Resources/008_RegionStore.sql
@@ -0,0 +1,9 @@
+BEGIN;
+
+ALTER TABLE primshapes change UUID UUIDold varchar(255);
+ALTER TABLE primshapes add UUID char(36);
+UPDATE primshapes set UUID = UUIDold;
+ALTER TABLE primshapes drop UUIDold;
+ALTER TABLE primshapes add constraint primary key(UUID);
+
+COMMIT;
\ No newline at end of file
-- 
cgit v1.1

