diff options
author | MW | 2007-10-08 16:42:05 +0000 |
---|---|---|
committer | MW | 2007-10-08 16:42:05 +0000 |
commit | f13611bbc91127ae573155b7dd490284614a0e2c (patch) | |
tree | a60e23b4435831376907b9b82f30d07ddc717218 /OpenSim/Framework | |
parent | Applied patch 485, inventory patch from tleiades (thanks again). (diff) | |
download | opensim-SC_OLD-f13611bbc91127ae573155b7dd490284614a0e2c.zip opensim-SC_OLD-f13611bbc91127ae573155b7dd490284614a0e2c.tar.gz opensim-SC_OLD-f13611bbc91127ae573155b7dd490284614a0e2c.tar.bz2 opensim-SC_OLD-f13611bbc91127ae573155b7dd490284614a0e2c.tar.xz |
The files that I missed from Tleiades patch.
Diffstat (limited to 'OpenSim/Framework')
4 files changed, 42 insertions, 0 deletions
diff --git a/OpenSim/Framework/Data.MySQL/Resources/CreateFoldersTable.sql b/OpenSim/Framework/Data.MySQL/Resources/CreateFoldersTable.sql new file mode 100644 index 0000000..2bb5553 --- /dev/null +++ b/OpenSim/Framework/Data.MySQL/Resources/CreateFoldersTable.sql | |||
@@ -0,0 +1,11 @@ | |||
1 | CREATE TABLE `inventoryfolders` ( | ||
2 | `folderID` varchar(36) NOT NULL default '', | ||
3 | `agentID` varchar(36) default NULL, | ||
4 | `parentFolderID` varchar(36) default NULL, | ||
5 | `folderName` varchar(64) default NULL, | ||
6 | `type` smallint NOT NULL default 0, | ||
7 | `version` int NOT NULL default 0, | ||
8 | PRIMARY KEY (`folderID`), | ||
9 | KEY `owner` (`agentID`), | ||
10 | KEY `parent` (`parentFolderID`) | ||
11 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Rev. 2'; | ||
diff --git a/OpenSim/Framework/Data.MySQL/Resources/CreateItemsTable.sql b/OpenSim/Framework/Data.MySQL/Resources/CreateItemsTable.sql new file mode 100644 index 0000000..8c79483 --- /dev/null +++ b/OpenSim/Framework/Data.MySQL/Resources/CreateItemsTable.sql | |||
@@ -0,0 +1,18 @@ | |||
1 | CREATE TABLE `inventoryitems` ( | ||
2 | `inventoryID` varchar(36) NOT NULL default '', | ||
3 | `assetID` varchar(36) default NULL, | ||
4 | `assetType` int(11) default NULL, | ||
5 | `parentFolderID` varchar(36) default NULL, | ||
6 | `avatarID` varchar(36) default NULL, | ||
7 | `inventoryName` varchar(64) default NULL, | ||
8 | `inventoryDescription` varchar(64) default NULL, | ||
9 | `inventoryNextPermissions` int(10) unsigned default NULL, | ||
10 | `inventoryCurrentPermissions` int(10) unsigned default NULL, | ||
11 | `invType` int(11) default NULL, | ||
12 | `creatorID` varchar(36) default NULL, | ||
13 | `inventoryBasePermissions` int(10) unsigned NOT NULL default 0, | ||
14 | `inventoryEveryOnePermissions` int(10) unsigned NOT NULL default 0, | ||
15 | PRIMARY KEY (`inventoryID`), | ||
16 | KEY `owner` (`avatarID`), | ||
17 | KEY `folder` (`parentFolderID`) | ||
18 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Rev. 2'; | ||
diff --git a/OpenSim/Framework/Data.MySQL/Resources/UpgradeFoldersTableToVersion2.sql b/OpenSim/Framework/Data.MySQL/Resources/UpgradeFoldersTableToVersion2.sql new file mode 100644 index 0000000..813c7c4 --- /dev/null +++ b/OpenSim/Framework/Data.MySQL/Resources/UpgradeFoldersTableToVersion2.sql | |||
@@ -0,0 +1,4 @@ | |||
1 | ALTER TABLE `inventoryfolders` | ||
2 | ADD COLUMN `type` smallint NOT NULL default 0, | ||
3 | ADD COLUMN `version` int NOT NULL default 0, | ||
4 | COMMENT='Rev. 2'; | ||
diff --git a/OpenSim/Framework/Data.MySQL/Resources/UpgradeItemsTableToVersion2.sql b/OpenSim/Framework/Data.MySQL/Resources/UpgradeItemsTableToVersion2.sql new file mode 100644 index 0000000..c47786c --- /dev/null +++ b/OpenSim/Framework/Data.MySQL/Resources/UpgradeItemsTableToVersion2.sql | |||
@@ -0,0 +1,9 @@ | |||
1 | ALTER TABLE `inventoryitems` | ||
2 | CHANGE COLUMN `type` `assetType` int(11) default NULL, | ||
3 | ADD COLUMN `invType` int(11) default NULL, | ||
4 | ADD COLUMN `creatorID` varchar(36) default NULL, | ||
5 | ADD COLUMN `inventoryBasePermissions` int(10) unsigned NOT NULL default 0, | ||
6 | ADD COLUMN `inventoryEveryOnePermissions` int(10) unsigned NOT NULL default 0, | ||
7 | COMMENT='Rev. 2'; | ||
8 | |||
9 | UPDATE `inventoryitems` SET invType=assetType; | ||