aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/NHibernate/Migration
diff options
context:
space:
mode:
authorSean Dague2008-04-08 23:04:16 +0000
committerSean Dague2008-04-08 23:04:16 +0000
commit8c82117207d39363365c7703eaee8b88090d7264 (patch)
treeb73c6290b31552b1f198a7545a52619cb77f8a80 /OpenSim/Data/NHibernate/Migration
parentadded Readme for migrations (diff)
downloadopensim-SC_OLD-8c82117207d39363365c7703eaee8b88090d7264.zip
opensim-SC_OLD-8c82117207d39363365c7703eaee8b88090d7264.tar.gz
opensim-SC_OLD-8c82117207d39363365c7703eaee8b88090d7264.tar.bz2
opensim-SC_OLD-8c82117207d39363365c7703eaee8b88090d7264.tar.xz
added migration script for SqliteAssets
Diffstat (limited to 'OpenSim/Data/NHibernate/Migration')
-rw-r--r--OpenSim/Data/NHibernate/Migration/SqliteAssets.sql5
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Data/NHibernate/Migration/SqliteAssets.sql b/OpenSim/Data/NHibernate/Migration/SqliteAssets.sql
new file mode 100644
index 0000000..4a7e0d1
--- /dev/null
+++ b/OpenSim/Data/NHibernate/Migration/SqliteAssets.sql
@@ -0,0 +1,5 @@
1-- The following converts the UUID from XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
2-- to XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX. This puts it in Guid native format
3-- for .NET, and the prefered format for LLUUID.
4
5update assets set UUID = SUBSTR(UUID,1,8) || "-" || SUBSTR(UUID,9,4) || "-" || SUBSTR(UUID,13,4) || "-" || SUBSTR(UUID,17,4) || "-" || SUBSTR(UUID,21,12) where UUID not like '%-%'; \ No newline at end of file