mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Added creator info across the board -- TaskInventoryItems and InventoryItems themselves. Tested. Seems to be working, main tests pass. Nothing done for IARs or HG transfers yet -- this only works for OARs for the time being.
New migration in inventory table in order to make CreatorID varchar(255).
This commit is contained in:
@@ -1243,7 +1243,7 @@ namespace OpenSim.Data.MySQL
|
||||
taskItem.Name = (String)row["name"];
|
||||
taskItem.Description = (String)row["description"];
|
||||
taskItem.CreationDate = Convert.ToUInt32(row["creationDate"]);
|
||||
taskItem.CreatorID = DBGuid.FromDB(row["creatorID"]);
|
||||
taskItem.CreatorIdentification = (String)row["creatorID"];
|
||||
taskItem.OwnerID = DBGuid.FromDB(row["ownerID"]);
|
||||
taskItem.LastOwnerID = DBGuid.FromDB(row["lastOwnerID"]);
|
||||
taskItem.GroupID = DBGuid.FromDB(row["groupID"]);
|
||||
@@ -1583,7 +1583,7 @@ namespace OpenSim.Data.MySQL
|
||||
cmd.Parameters.AddWithValue("name", taskItem.Name);
|
||||
cmd.Parameters.AddWithValue("description", taskItem.Description);
|
||||
cmd.Parameters.AddWithValue("creationDate", taskItem.CreationDate);
|
||||
cmd.Parameters.AddWithValue("creatorID", taskItem.CreatorID);
|
||||
cmd.Parameters.AddWithValue("creatorID", taskItem.CreatorIdentification);
|
||||
cmd.Parameters.AddWithValue("ownerID", taskItem.OwnerID);
|
||||
cmd.Parameters.AddWithValue("lastOwnerID", taskItem.LastOwnerID);
|
||||
cmd.Parameters.AddWithValue("groupID", taskItem.GroupID);
|
||||
|
||||
@@ -99,3 +99,11 @@ BEGIN;
|
||||
alter table inventoryitems modify column creatorID varchar(128) not NULL default '00000000-0000-0000-0000-000000000000';
|
||||
|
||||
COMMIT;
|
||||
|
||||
:VERSION 6 # ------------
|
||||
|
||||
BEGIN;
|
||||
|
||||
alter table inventoryitems modify column creatorID varchar(255) not NULL default '00000000-0000-0000-0000-000000000000';
|
||||
|
||||
COMMIT;
|
||||
|
||||
@@ -823,5 +823,6 @@ COMMIT;
|
||||
BEGIN;
|
||||
|
||||
ALTER TABLE `prims` MODIFY COLUMN `CreatorID` VARCHAR(255) NOT NULL DEFAULT '';
|
||||
ALTER TABLE `primitems` MODIFY COLUMN `CreatorID` VARCHAR(255) NOT NULL DEFAULT '';
|
||||
|
||||
COMMIT;
|
||||
|
||||
Reference in New Issue
Block a user