diff options
author | Melanie Thielker | 2008-11-14 19:36:29 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-11-14 19:36:29 +0000 |
commit | 5214d39e7ce0de3edc14d0a20c9652f0056ab045 (patch) | |
tree | cdc2972ad12b7618726f09a22ebb7a76ed264785 /OpenSim/Data/MSSQL/MSSQLInventoryData.cs | |
parent | Add SQLite and the missing migrations files for last commit (diff) | |
download | opensim-SC-5214d39e7ce0de3edc14d0a20c9652f0056ab045.zip opensim-SC-5214d39e7ce0de3edc14d0a20c9652f0056ab045.tar.gz opensim-SC-5214d39e7ce0de3edc14d0a20c9652f0056ab045.tar.bz2 opensim-SC-5214d39e7ce0de3edc14d0a20c9652f0056ab045.tar.xz |
Mantis #2618
Thank you, StrawberryFride, for a patch that adds group permission support
to MSSQL. Contains a migration, back up your database.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/MSSQL/MSSQLInventoryData.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Data/MSSQL/MSSQLInventoryData.cs b/OpenSim/Data/MSSQL/MSSQLInventoryData.cs index 79bab3b..eb31cc8 100644 --- a/OpenSim/Data/MSSQL/MSSQLInventoryData.cs +++ b/OpenSim/Data/MSSQL/MSSQLInventoryData.cs | |||
@@ -488,11 +488,11 @@ namespace OpenSim.Data.MSSQL | |||
488 | string sql = "INSERT INTO inventoryitems"; | 488 | string sql = "INSERT INTO inventoryitems"; |
489 | sql += "([inventoryID], [assetID], [assetType], [parentFolderID], [avatarID], [inventoryName]" | 489 | sql += "([inventoryID], [assetID], [assetType], [parentFolderID], [avatarID], [inventoryName]" |
490 | + ", [inventoryDescription], [inventoryNextPermissions], [inventoryCurrentPermissions]" | 490 | + ", [inventoryDescription], [inventoryNextPermissions], [inventoryCurrentPermissions]" |
491 | + ", [invType], [creatorID], [inventoryBasePermissions], [inventoryEveryOnePermissions]" | 491 | + ", [invType], [creatorID], [inventoryBasePermissions], [inventoryEveryOnePermissions], [inventoryGroupPermissions]" |
492 | + ", [salePrice], [saleType], [creationDate], [groupID], [groupOwned], [flags]) VALUES "; | 492 | + ", [salePrice], [saleType], [creationDate], [groupID], [groupOwned], [flags]) VALUES "; |
493 | sql += "(@inventoryID, @assetID, @assetType, @parentFolderID, @avatarID, @inventoryName, @inventoryDescription" | 493 | sql += "(@inventoryID, @assetID, @assetType, @parentFolderID, @avatarID, @inventoryName, @inventoryDescription" |
494 | + ", @inventoryNextPermissions, @inventoryCurrentPermissions, @invType, @creatorID" | 494 | + ", @inventoryNextPermissions, @inventoryCurrentPermissions, @invType, @creatorID" |
495 | + ", @inventoryBasePermissions, @inventoryEveryOnePermissions, @salePrice, @saleType" | 495 | + ", @inventoryBasePermissions, @inventoryEveryOnePermissions, @inventoryGroupPermissions, @salePrice, @saleType" |
496 | + ", @creationDate, @groupID, @groupOwned, @flags);"; | 496 | + ", @creationDate, @groupID, @groupOwned, @flags);"; |
497 | 497 | ||
498 | using (AutoClosingSqlCommand command = database.Query(sql)) | 498 | using (AutoClosingSqlCommand command = database.Query(sql)) |
@@ -510,6 +510,7 @@ namespace OpenSim.Data.MSSQL | |||
510 | command.Parameters.Add(database.CreateParameter("creatorID", item.Creator)); | 510 | command.Parameters.Add(database.CreateParameter("creatorID", item.Creator)); |
511 | command.Parameters.Add(database.CreateParameter("inventoryBasePermissions", item.BasePermissions)); | 511 | command.Parameters.Add(database.CreateParameter("inventoryBasePermissions", item.BasePermissions)); |
512 | command.Parameters.Add(database.CreateParameter("inventoryEveryOnePermissions", item.EveryOnePermissions)); | 512 | command.Parameters.Add(database.CreateParameter("inventoryEveryOnePermissions", item.EveryOnePermissions)); |
513 | command.Parameters.Add(database.CreateParameter("inventoryGroupPermissions", item.GroupPermissions)); | ||
513 | command.Parameters.Add(database.CreateParameter("salePrice", item.SalePrice)); | 514 | command.Parameters.Add(database.CreateParameter("salePrice", item.SalePrice)); |
514 | command.Parameters.Add(database.CreateParameter("saleType", item.SaleType)); | 515 | command.Parameters.Add(database.CreateParameter("saleType", item.SaleType)); |
515 | command.Parameters.Add(database.CreateParameter("creationDate", item.CreationDate)); | 516 | command.Parameters.Add(database.CreateParameter("creationDate", item.CreationDate)); |
@@ -786,6 +787,7 @@ namespace OpenSim.Data.MSSQL | |||
786 | item.Creator = new UUID(reader["creatorID"].ToString()); | 787 | item.Creator = new UUID(reader["creatorID"].ToString()); |
787 | item.BasePermissions = Convert.ToUInt32(reader["inventoryBasePermissions"]); | 788 | item.BasePermissions = Convert.ToUInt32(reader["inventoryBasePermissions"]); |
788 | item.EveryOnePermissions = Convert.ToUInt32(reader["inventoryEveryOnePermissions"]); | 789 | item.EveryOnePermissions = Convert.ToUInt32(reader["inventoryEveryOnePermissions"]); |
790 | item.GroupPermissions = Convert.ToUInt32(reader["inventoryGroupPermissions"]); | ||
789 | item.SalePrice = Convert.ToInt32(reader["salePrice"]); | 791 | item.SalePrice = Convert.ToInt32(reader["salePrice"]); |
790 | item.SaleType = Convert.ToByte(reader["saleType"]); | 792 | item.SaleType = Convert.ToByte(reader["saleType"]); |
791 | item.CreationDate = Convert.ToInt32(reader["creationDate"]); | 793 | item.CreationDate = Convert.ToInt32(reader["creationDate"]); |