diff options
author | John Hurliman | 2009-10-19 16:52:27 -0700 |
---|---|---|
committer | John Hurliman | 2009-10-19 16:52:27 -0700 |
commit | fdce1be3db287bed901332b90ba57165e201d3fc (patch) | |
tree | 8f0792e4c4ac4c14a50559f8439573740a7b3326 /OpenSim/Data/NHibernate/Migration | |
parent | Merge branch 'prioritization' of ssh://opensimulator.org/var/git/opensim into... (diff) | |
download | opensim-SC-fdce1be3db287bed901332b90ba57165e201d3fc.zip opensim-SC-fdce1be3db287bed901332b90ba57165e201d3fc.tar.gz opensim-SC-fdce1be3db287bed901332b90ba57165e201d3fc.tar.bz2 opensim-SC-fdce1be3db287bed901332b90ba57165e201d3fc.tar.xz |
* Removed OpenSim.Data.NHibernate
* Replaced calls to ThreadPool.QueueUserWorkItem() with ThreadPool.UnsafeQueueUserWorkItem() since OpenSim does not use Code Access Security sandboxing
Diffstat (limited to 'OpenSim/Data/NHibernate/Migration')
-rw-r--r-- | OpenSim/Data/NHibernate/Migration/README.txt | 3 | ||||
-rw-r--r-- | OpenSim/Data/NHibernate/Migration/SqliteAssets.sql | 5 | ||||
-rwxr-xr-x | OpenSim/Data/NHibernate/Migration/SqliteInventory.pl | 43 |
3 files changed, 0 insertions, 51 deletions
diff --git a/OpenSim/Data/NHibernate/Migration/README.txt b/OpenSim/Data/NHibernate/Migration/README.txt deleted file mode 100644 index 3776960..0000000 --- a/OpenSim/Data/NHibernate/Migration/README.txt +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | This directory contains migration scripts for migrating from other | ||
2 | database backends in OpenSim to the NHibernate version of that same | ||
3 | database driver. \ No newline at end of file | ||
diff --git a/OpenSim/Data/NHibernate/Migration/SqliteAssets.sql b/OpenSim/Data/NHibernate/Migration/SqliteAssets.sql deleted file mode 100644 index 4a7e0d1..0000000 --- a/OpenSim/Data/NHibernate/Migration/SqliteAssets.sql +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
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 | |||
5 | 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 | ||
diff --git a/OpenSim/Data/NHibernate/Migration/SqliteInventory.pl b/OpenSim/Data/NHibernate/Migration/SqliteInventory.pl deleted file mode 100755 index c59cbce..0000000 --- a/OpenSim/Data/NHibernate/Migration/SqliteInventory.pl +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | #!/usr/bin/perl | ||
2 | |||
3 | # -- CREATE TABLE inventoryitems(UUID varchar(255) primary key, | ||
4 | # -- assetID varchar(255), | ||
5 | # -- assetType integer, | ||
6 | # -- invType integer, | ||
7 | # -- parentFolderID varchar(255), | ||
8 | # -- avatarID varchar(255), | ||
9 | # -- creatorsID varchar(255), | ||
10 | # -- inventoryName varchar(255), | ||
11 | # -- inventoryDescription varchar(255), | ||
12 | # -- inventoryNextPermissions integer, | ||
13 | # -- inventoryCurrentPermissions integer, | ||
14 | # -- inventoryBasePermissions integer, | ||
15 | # -- inventoryEveryOnePermissions integer); | ||
16 | |||
17 | # -- CREATE TABLE inventoryfolders(UUID varchar(255) primary key, | ||
18 | # -- name varchar(255), | ||
19 | # -- agentID varchar(255), | ||
20 | # -- parentID varchar(255), | ||
21 | # -- type integer, | ||
22 | # -- version integer); | ||
23 | |||
24 | my $items = "INSERT INTO InventoryItems(ID, AssetID, AssetType, InvType, Folder, Owner, Creator, Name, Description, NextPermissions, CurrentPermissions, BasePermissions, EveryOnePermissions) "; | ||
25 | my $folders = "INSERT INTO InventoryFolders(ID, Name, Owner, ParentID, Type, Version) "; | ||
26 | |||
27 | open(SQLITE, "sqlite3 inventoryStore.db .dump |") or die "can't open the database for migration"; | ||
28 | open(WRITE,"| sqlite3 Inventory.db"); | ||
29 | |||
30 | while(my $line = <SQLITE>) { | ||
31 | $line =~ s/([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})/$1-$2-$3-$4-$5/g; | ||
32 | if($line =~ s/(INSERT INTO "inventoryitems")/$items/) { | ||
33 | print $line; | ||
34 | print WRITE $line; | ||
35 | } | ||
36 | if($line =~ s/(INSERT INTO "inventoryfolders")/$folders/) { | ||
37 | print $line; | ||
38 | print WRITE $line; | ||
39 | } | ||
40 | } | ||
41 | |||
42 | close(WRITE); | ||
43 | close(SQLITE); | ||