From 8c82117207d39363365c7703eaee8b88090d7264 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Tue, 8 Apr 2008 23:04:16 +0000 Subject: added migration script for SqliteAssets --- OpenSim/Data/NHibernate/Migration/SqliteAssets.sql | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 OpenSim/Data/NHibernate/Migration/SqliteAssets.sql (limited to 'OpenSim/Data') 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 @@ +-- The following converts the UUID from XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX +-- to XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX. This puts it in Guid native format +-- for .NET, and the prefered format for LLUUID. + +update 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 -- cgit v1.1