From 5ce12c92d976fa32c076689bb3f937d8a8d60dc0 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Sat, 16 Jan 2010 08:32:32 -0800 Subject: Fixed a missing field in the last regions table migration. --- OpenSim/Data/MySQL/Resources/007_GridStore.sql | 1 + OpenSim/Services/Interfaces/IGridService.cs | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/OpenSim/Data/MySQL/Resources/007_GridStore.sql b/OpenSim/Data/MySQL/Resources/007_GridStore.sql index 3f88d3d..dbec584 100644 --- a/OpenSim/Data/MySQL/Resources/007_GridStore.sql +++ b/OpenSim/Data/MySQL/Resources/007_GridStore.sql @@ -1,6 +1,7 @@ BEGIN; ALTER TABLE `regions` ADD COLUMN `PrincipalID` char(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000'; +ALTER TABLE `regions` ADD COLUMN `Token` varchar(255) NOT NULL; COMMIT; diff --git a/OpenSim/Services/Interfaces/IGridService.cs b/OpenSim/Services/Interfaces/IGridService.cs index 6a83f65..2f5e991 100644 --- a/OpenSim/Services/Interfaces/IGridService.cs +++ b/OpenSim/Services/Interfaces/IGridService.cs @@ -307,7 +307,7 @@ namespace OpenSim.Services.Interfaces kvp["access"] = Access.ToString(); kvp["regionSecret"] = RegionSecret; kvp["owner_uuid"] = EstateOwner.ToString(); - kvp["token"] = Token.ToString(); + kvp["Token"] = Token.ToString(); // Maturity doesn't seem to exist in the DB return kvp; } @@ -365,8 +365,8 @@ namespace OpenSim.Services.Interfaces if (kvp.ContainsKey("owner_uuid")) EstateOwner = new UUID(kvp["owner_uuid"].ToString()); - if (kvp.ContainsKey("token")) - Token = kvp["token"].ToString(); + if (kvp.ContainsKey("Token")) + Token = kvp["Token"].ToString(); } } -- cgit v1.1