diff --git a/OpenSim/Data/NHibernate/Migration/SqliteAssets.sql b/OpenSim/Data/NHibernate/Migration/SqliteAssets.sql new file mode 100644 index 0000000000..4a7e0d1b75 --- /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