do store a new flag on region db

master
UbitUmarov 2020-06-09 19:44:57 +01:00
parent bde4354c15
commit 0d76635113
4 changed files with 23 additions and 1 deletions

View File

@ -76,3 +76,8 @@ ALTER TABLE `estateban`
ADD COLUMN `banTime` int(11) NOT NULL DEFAULT 0; ADD COLUMN `banTime` int(11) NOT NULL DEFAULT 0;
COMMIT; COMMIT;
:VERSION 36
BEGIN;
ALTER TABLE `estate_settings`
ADD COLUMN `AllowEnviromentOverride` tinyint(4) NOT NULL DEFAULT '0';
COMMIT;

View File

@ -133,3 +133,9 @@ ALTER TABLE "public"."estateban"
ADD COLUMN "banningUUID" uuid NOT NULL, ADD COLUMN "banningUUID" uuid NOT NULL,
ADD COLUMN "banTime" int4 NOT NULL DEFAULT 0; ADD COLUMN "banTime" int4 NOT NULL DEFAULT 0;
COMMIT; COMMIT;
:VERSION 15
BEGIN TRANSACTION;
ALTER TABLE "public"."estate_settings"
ADD COLUMN "AllowEnviromentOverride" bool NOT NULL;
COMMIT;

View File

@ -74,4 +74,10 @@ ALTER TABLE `estateban` ADD COLUMN `banningUUID` varchar(36) NOT NULL DEFAULT '0
ALTER TABLE `estateban` ADD COLUMN `banTime` integer NOT NULL DEFAULT 0; ALTER TABLE `estateban` ADD COLUMN `banTime` integer NOT NULL DEFAULT 0;
COMMIT; COMMIT;
:VERSION 12
BEGIN;
ALTER TABLE `estate_settings`
ADD COLUMN `AllowEnviromentOverride` tinyint not null default 0;
COMMIT;

View File

@ -237,7 +237,12 @@ namespace OpenSim.Framework
set { m_DenyMinors = value; } set { m_DenyMinors = value; }
} }
public bool AllowEnviromentOverride {get; set;} = false; private bool m_AllowEnviromentOverride = false;
public bool AllowEnviromentOverride
{
get { return m_AllowEnviromentOverride; }
set { m_AllowEnviromentOverride = value; }
}
// All those lists... // All those lists...
// //