merge
commit
09c4952c6d
|
@ -607,6 +607,10 @@ namespace OpenSim.Data.MySQL
|
||||||
{
|
{
|
||||||
m_log.Info("[REGION DB]: Storing terrain");
|
m_log.Info("[REGION DB]: Storing terrain");
|
||||||
|
|
||||||
|
int terrainDBRevision;
|
||||||
|
Array terrainDBblob;
|
||||||
|
terrData.GetDatabaseBlob(out terrainDBRevision, out terrainDBblob);
|
||||||
|
|
||||||
lock (m_dbLock)
|
lock (m_dbLock)
|
||||||
{
|
{
|
||||||
using (MySqlConnection dbcon = new MySqlConnection(m_connectionString))
|
using (MySqlConnection dbcon = new MySqlConnection(m_connectionString))
|
||||||
|
@ -626,10 +630,6 @@ namespace OpenSim.Data.MySQL
|
||||||
"Revision, Heightfield) values (?RegionUUID, " +
|
"Revision, Heightfield) values (?RegionUUID, " +
|
||||||
"?Revision, ?Heightfield)";
|
"?Revision, ?Heightfield)";
|
||||||
|
|
||||||
int terrainDBRevision;
|
|
||||||
Array terrainDBblob;
|
|
||||||
terrData.GetDatabaseBlob(out terrainDBRevision, out terrainDBblob);
|
|
||||||
|
|
||||||
cmd2.Parameters.AddWithValue("RegionUUID", regionID.ToString());
|
cmd2.Parameters.AddWithValue("RegionUUID", regionID.ToString());
|
||||||
cmd2.Parameters.AddWithValue("Revision", terrainDBRevision);
|
cmd2.Parameters.AddWithValue("Revision", terrainDBRevision);
|
||||||
cmd2.Parameters.AddWithValue("Heightfield", terrainDBblob);
|
cmd2.Parameters.AddWithValue("Heightfield", terrainDBblob);
|
||||||
|
@ -655,6 +655,10 @@ namespace OpenSim.Data.MySQL
|
||||||
{
|
{
|
||||||
m_log.Info("[REGION DB]: Storing Baked terrain");
|
m_log.Info("[REGION DB]: Storing Baked terrain");
|
||||||
|
|
||||||
|
int terrainDBRevision;
|
||||||
|
Array terrainDBblob;
|
||||||
|
terrData.GetDatabaseBlob(out terrainDBRevision, out terrainDBblob);
|
||||||
|
|
||||||
lock (m_dbLock)
|
lock (m_dbLock)
|
||||||
{
|
{
|
||||||
using (MySqlConnection dbcon = new MySqlConnection(m_connectionString))
|
using (MySqlConnection dbcon = new MySqlConnection(m_connectionString))
|
||||||
|
@ -674,10 +678,6 @@ namespace OpenSim.Data.MySQL
|
||||||
"Revision, Heightfield) values (?RegionUUID, " +
|
"Revision, Heightfield) values (?RegionUUID, " +
|
||||||
"?Revision, ?Heightfield)";
|
"?Revision, ?Heightfield)";
|
||||||
|
|
||||||
int terrainDBRevision;
|
|
||||||
Array terrainDBblob;
|
|
||||||
terrData.GetDatabaseBlob(out terrainDBRevision, out terrainDBblob);
|
|
||||||
|
|
||||||
cmd2.Parameters.AddWithValue("RegionUUID", regionID.ToString());
|
cmd2.Parameters.AddWithValue("RegionUUID", regionID.ToString());
|
||||||
cmd2.Parameters.AddWithValue("Revision", terrainDBRevision);
|
cmd2.Parameters.AddWithValue("Revision", terrainDBRevision);
|
||||||
cmd2.Parameters.AddWithValue("Heightfield", terrainDBblob);
|
cmd2.Parameters.AddWithValue("Heightfield", terrainDBblob);
|
||||||
|
@ -711,9 +711,12 @@ namespace OpenSim.Data.MySQL
|
||||||
public TerrainData LoadTerrain(UUID regionID, int pSizeX, int pSizeY, int pSizeZ)
|
public TerrainData LoadTerrain(UUID regionID, int pSizeX, int pSizeY, int pSizeZ)
|
||||||
{
|
{
|
||||||
TerrainData terrData = null;
|
TerrainData terrData = null;
|
||||||
|
byte[] blob = null;
|
||||||
|
int rev = 0;
|
||||||
|
|
||||||
lock (m_dbLock)
|
lock (m_dbLock)
|
||||||
{
|
{
|
||||||
|
|
||||||
using (MySqlConnection dbcon = new MySqlConnection(m_connectionString))
|
using (MySqlConnection dbcon = new MySqlConnection(m_connectionString))
|
||||||
{
|
{
|
||||||
dbcon.Open();
|
dbcon.Open();
|
||||||
|
@ -729,11 +732,10 @@ namespace OpenSim.Data.MySQL
|
||||||
{
|
{
|
||||||
while (reader.Read())
|
while (reader.Read())
|
||||||
{
|
{
|
||||||
int rev = Convert.ToInt32(reader["Revision"]);
|
rev = Convert.ToInt32(reader["Revision"]);
|
||||||
if ((reader["Heightfield"] != DBNull.Value))
|
if ((reader["Heightfield"] != DBNull.Value))
|
||||||
{
|
{
|
||||||
byte[] blob = (byte[])reader["Heightfield"];
|
blob = (byte[])reader["Heightfield"];
|
||||||
terrData = TerrainData.CreateFromDatabaseBlobFactory(pSizeX, pSizeY, pSizeZ, rev, blob);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -742,12 +744,17 @@ namespace OpenSim.Data.MySQL
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(blob != null)
|
||||||
|
terrData = TerrainData.CreateFromDatabaseBlobFactory(pSizeX, pSizeY, pSizeZ, rev, blob);
|
||||||
|
|
||||||
return terrData;
|
return terrData;
|
||||||
}
|
}
|
||||||
|
|
||||||
public TerrainData LoadBakedTerrain(UUID regionID, int pSizeX, int pSizeY, int pSizeZ)
|
public TerrainData LoadBakedTerrain(UUID regionID, int pSizeX, int pSizeY, int pSizeZ)
|
||||||
{
|
{
|
||||||
TerrainData terrData = null;
|
TerrainData terrData = null;
|
||||||
|
byte[] blob = null;
|
||||||
|
int rev = 0;
|
||||||
|
|
||||||
lock (m_dbLock)
|
lock (m_dbLock)
|
||||||
{
|
{
|
||||||
|
@ -765,11 +772,10 @@ namespace OpenSim.Data.MySQL
|
||||||
{
|
{
|
||||||
while (reader.Read())
|
while (reader.Read())
|
||||||
{
|
{
|
||||||
int rev = Convert.ToInt32(reader["Revision"]);
|
rev = Convert.ToInt32(reader["Revision"]);
|
||||||
if ((reader["Heightfield"] != DBNull.Value))
|
if ((reader["Heightfield"] != DBNull.Value))
|
||||||
{
|
{
|
||||||
byte[] blob = (byte[])reader["Heightfield"];
|
blob = (byte[])reader["Heightfield"];
|
||||||
terrData = TerrainData.CreateFromDatabaseBlobFactory(pSizeX, pSizeY, pSizeZ, rev, blob);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -777,6 +783,8 @@ namespace OpenSim.Data.MySQL
|
||||||
dbcon.Close();
|
dbcon.Close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(blob != null)
|
||||||
|
terrData = TerrainData.CreateFromDatabaseBlobFactory(pSizeX, pSizeY, pSizeZ, rev, blob);
|
||||||
|
|
||||||
return terrData;
|
return terrData;
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
:VERSION 1
|
||||||
|
|
||||||
|
BEGIN TRANSACTION;
|
||||||
|
|
||||||
|
CREATE TABLE IF NOT EXISTS "public"."agentprefs" (
|
||||||
|
"PrincipalID" uuid NOT NULL,
|
||||||
|
"AccessPrefs" char(2) NOT NULL DEFAULT 'M'::bpchar COLLATE "default",
|
||||||
|
"HoverHeight" float8 NOT NULL DEFAULT 0,
|
||||||
|
"Language" char(5) NOT NULL DEFAULT 'en-us'::bpchar COLLATE "default",
|
||||||
|
"LanguageIsPublic" bool NOT NULL DEFAULT true,
|
||||||
|
"PermEveryone" int4 NOT NULL DEFAULT 0,
|
||||||
|
"PermGroup" int4 NOT NULL DEFAULT 0,
|
||||||
|
"PermNextOwner" int4 NOT NULL DEFAULT 532480
|
||||||
|
)
|
||||||
|
WITH (OIDS=FALSE);
|
||||||
|
|
||||||
|
ALTER TABLE "public"."agentprefs" ADD PRIMARY KEY ("PrincipalID") NOT DEFERRABLE INITIALLY IMMEDIATE;
|
||||||
|
|
||||||
|
COMMIT;
|
|
@ -1,307 +1,112 @@
|
||||||
:VERSION 1
|
:VERSION 12
|
||||||
|
|
||||||
BEGIN TRANSACTION;
|
BEGIN TRANSACTION;
|
||||||
|
|
||||||
CREATE TABLE estate_managers(
|
-- ----------------------------
|
||||||
"EstateID" int NOT NULL Primary Key,
|
-- Table structure for estate_groups
|
||||||
uuid varchar(36) NOT NULL
|
-- ----------------------------
|
||||||
);
|
CREATE TABLE IF NOT EXISTS "public"."estate_groups" (
|
||||||
|
"EstateID" int4 NOT NULL,
|
||||||
CREATE TABLE estate_groups(
|
"uuid" uuid NOT NULL
|
||||||
"EstateID" int NOT NULL,
|
)
|
||||||
uuid varchar(36) NOT NULL
|
WITH (OIDS=FALSE);
|
||||||
);
|
|
||||||
|
-- Indexes structure for table estate_groups
|
||||||
|
-- ----------------------------
|
||||||
CREATE TABLE estate_users(
|
CREATE INDEX IF NOT EXISTS "ix_estate_groups" ON "public"."estate_groups" USING btree("EstateID" "pg_catalog"."int4_ops" ASC NULLS LAST);
|
||||||
"EstateID" int NOT NULL,
|
|
||||||
uuid varchar(36) NOT NULL
|
-- ----------------------------
|
||||||
);
|
-- Table structure for estate_managers
|
||||||
|
-- ----------------------------
|
||||||
|
CREATE TABLE IF NOT EXISTS "public"."estate_managers" (
|
||||||
CREATE TABLE estateban(
|
"EstateID" int4 NOT NULL,
|
||||||
"EstateID" int NOT NULL,
|
"uuid" uuid NOT NULL
|
||||||
"bannedUUID" varchar(36) NOT NULL,
|
)
|
||||||
"bannedIp" varchar(16) NOT NULL,
|
WITH (OIDS=FALSE);
|
||||||
"bannedIpHostMask" varchar(16) NOT NULL,
|
|
||||||
"bannedNameMask" varchar(64) NULL DEFAULT NULL
|
-- Indexes structure for table estate_managers
|
||||||
);
|
-- ----------------------------
|
||||||
|
CREATE INDEX IF NOT EXISTS "ix_estate_managers" ON "public"."estate_managers" USING btree("EstateID" "pg_catalog"."int4_ops" ASC NULLS LAST);
|
||||||
Create Sequence estate_settings_id increment by 100 start with 100;
|
|
||||||
|
-- ----------------------------
|
||||||
CREATE TABLE estate_settings(
|
-- Table structure for estate_map
|
||||||
"EstateID" integer DEFAULT nextval('estate_settings_id') NOT NULL,
|
-- ----------------------------
|
||||||
"EstateName" varchar(64) NULL DEFAULT (NULL),
|
CREATE TABLE IF NOT EXISTS "public"."estate_map" (
|
||||||
"AbuseEmailToEstateOwner" boolean NOT NULL,
|
"RegionID" uuid NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000'::uuid,
|
||||||
"DenyAnonymous" boolean NOT NULL,
|
"EstateID" int4 NOT NULL
|
||||||
"ResetHomeOnTeleport" boolean NOT NULL,
|
)
|
||||||
"FixedSun" boolean NOT NULL,
|
WITH (OIDS=FALSE);
|
||||||
"DenyTransacted" boolean NOT NULL,
|
|
||||||
"BlockDwell" boolean NOT NULL,
|
-- Primary key structure for table estate_map
|
||||||
"DenyIdentified" boolean NOT NULL,
|
-- ----------------------------
|
||||||
"AllowVoice" boolean NOT NULL,
|
ALTER TABLE "public"."estate_map" ADD PRIMARY KEY ("RegionID") NOT DEFERRABLE INITIALLY IMMEDIATE;
|
||||||
"UseGlobalTime" boolean NOT NULL,
|
|
||||||
"PricePerMeter" int NOT NULL,
|
-- ----------------------------
|
||||||
"TaxFree" boolean NOT NULL,
|
-- Table structure for estate_settings
|
||||||
"AllowDirectTeleport" boolean NOT NULL,
|
-- ----------------------------
|
||||||
"RedirectGridX" int NOT NULL,
|
CREATE TABLE IF NOT EXISTS "public"."estate_settings" (
|
||||||
"RedirectGridY" int NOT NULL,
|
"EstateID" int4 NOT NULL DEFAULT nextval('estate_settings_id'::regclass),
|
||||||
"ParentEstateID" int NOT NULL,
|
"EstateName" varchar(64) DEFAULT NULL::character varying COLLATE "default",
|
||||||
"SunPosition" double precision NOT NULL,
|
"AbuseEmailToEstateOwner" bool NOT NULL,
|
||||||
"EstateSkipScripts" boolean NOT NULL,
|
"DenyAnonymous" bool NOT NULL,
|
||||||
"BillableFactor" double precision NOT NULL,
|
"ResetHomeOnTeleport" bool NOT NULL,
|
||||||
"PublicAccess" boolean NOT NULL,
|
"FixedSun" bool NOT NULL,
|
||||||
"AbuseEmail" varchar(255) NOT NULL,
|
"DenyTransacted" bool NOT NULL,
|
||||||
"EstateOwner" varchar(36) NOT NULL,
|
"BlockDwell" bool NOT NULL,
|
||||||
"DenyMinors" boolean NOT NULL
|
"DenyIdentified" bool NOT NULL,
|
||||||
);
|
"AllowVoice" bool NOT NULL,
|
||||||
|
"UseGlobalTime" bool NOT NULL,
|
||||||
|
"PricePerMeter" int4 NOT NULL,
|
||||||
CREATE TABLE estate_map(
|
"TaxFree" bool NOT NULL,
|
||||||
"RegionID" varchar(36) NOT NULL DEFAULT ('00000000-0000-0000-0000-000000000000'),
|
"AllowDirectTeleport" bool NOT NULL,
|
||||||
"EstateID" int NOT NULL
|
"RedirectGridX" int4 NOT NULL,
|
||||||
);
|
"RedirectGridY" int4 NOT NULL,
|
||||||
|
"ParentEstateID" int4 NOT NULL,
|
||||||
COMMIT;
|
"SunPosition" float8 NOT NULL,
|
||||||
|
"EstateSkipScripts" bool NOT NULL,
|
||||||
:VERSION 2
|
"BillableFactor" float8 NOT NULL,
|
||||||
|
"PublicAccess" bool NOT NULL,
|
||||||
BEGIN TRANSACTION;
|
"AbuseEmail" varchar(255) NOT NULL COLLATE "default",
|
||||||
|
|
||||||
CREATE INDEX IX_estate_managers ON estate_managers
|
|
||||||
(
|
|
||||||
"EstateID"
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
CREATE INDEX IX_estate_groups ON estate_groups
|
|
||||||
(
|
|
||||||
"EstateID"
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
CREATE INDEX IX_estate_users ON estate_users
|
|
||||||
(
|
|
||||||
"EstateID"
|
|
||||||
);
|
|
||||||
|
|
||||||
COMMIT;
|
|
||||||
|
|
||||||
:VERSION 3
|
|
||||||
|
|
||||||
BEGIN TRANSACTION;
|
|
||||||
|
|
||||||
CREATE TABLE Tmp_estateban
|
|
||||||
(
|
|
||||||
"EstateID" int NOT NULL,
|
|
||||||
"bannedUUID" varchar(36) NOT NULL,
|
|
||||||
"bannedIp" varchar(16) NULL,
|
|
||||||
"bannedIpHostMask" varchar(16) NULL,
|
|
||||||
"bannedNameMask" varchar(64) NULL
|
|
||||||
);
|
|
||||||
|
|
||||||
INSERT INTO Tmp_estateban ("EstateID", "bannedUUID", "bannedIp", "bannedIpHostMask", "bannedNameMask")
|
|
||||||
SELECT "EstateID", "bannedUUID", "bannedIp", "bannedIpHostMask", "bannedNameMask" FROM estateban;
|
|
||||||
|
|
||||||
DROP TABLE estateban;
|
|
||||||
|
|
||||||
Alter table Tmp_estateban
|
|
||||||
rename to estateban;
|
|
||||||
|
|
||||||
CREATE INDEX IX_estateban ON estateban
|
|
||||||
(
|
|
||||||
"EstateID"
|
|
||||||
);
|
|
||||||
|
|
||||||
COMMIT;
|
|
||||||
|
|
||||||
|
|
||||||
:VERSION 4
|
|
||||||
|
|
||||||
BEGIN TRANSACTION;
|
|
||||||
|
|
||||||
CREATE TABLE Tmp_estate_managers
|
|
||||||
(
|
|
||||||
"EstateID" int NOT NULL,
|
|
||||||
uuid uuid NOT NULL
|
|
||||||
);
|
|
||||||
|
|
||||||
INSERT INTO Tmp_estate_managers ("EstateID", uuid)
|
|
||||||
SELECT "EstateID", cast(uuid as uuid) FROM estate_managers;
|
|
||||||
|
|
||||||
DROP TABLE estate_managers;
|
|
||||||
|
|
||||||
Alter table Tmp_estate_managers
|
|
||||||
rename to estate_managers;
|
|
||||||
|
|
||||||
CREATE INDEX IX_estate_managers ON estate_managers
|
|
||||||
(
|
|
||||||
"EstateID"
|
|
||||||
);
|
|
||||||
|
|
||||||
COMMIT;
|
|
||||||
|
|
||||||
|
|
||||||
:VERSION 5
|
|
||||||
|
|
||||||
BEGIN TRANSACTION;
|
|
||||||
|
|
||||||
CREATE TABLE Tmp_estate_groups
|
|
||||||
(
|
|
||||||
"EstateID" int NOT NULL,
|
|
||||||
uuid uuid NOT NULL
|
|
||||||
) ;
|
|
||||||
|
|
||||||
INSERT INTO Tmp_estate_groups ("EstateID", uuid)
|
|
||||||
SELECT "EstateID", cast(uuid as uuid) FROM estate_groups;
|
|
||||||
|
|
||||||
DROP TABLE estate_groups;
|
|
||||||
|
|
||||||
Alter table Tmp_estate_groups
|
|
||||||
rename to estate_groups;
|
|
||||||
|
|
||||||
CREATE INDEX IX_estate_groups ON estate_groups
|
|
||||||
(
|
|
||||||
"EstateID"
|
|
||||||
);
|
|
||||||
|
|
||||||
COMMIT;
|
|
||||||
|
|
||||||
|
|
||||||
:VERSION 6
|
|
||||||
|
|
||||||
BEGIN TRANSACTION;
|
|
||||||
|
|
||||||
CREATE TABLE Tmp_estate_users
|
|
||||||
(
|
|
||||||
"EstateID" int NOT NULL,
|
|
||||||
uuid uuid NOT NULL
|
|
||||||
);
|
|
||||||
|
|
||||||
INSERT INTO Tmp_estate_users ("EstateID", uuid)
|
|
||||||
SELECT "EstateID", cast(uuid as uuid) FROM estate_users ;
|
|
||||||
|
|
||||||
DROP TABLE estate_users;
|
|
||||||
|
|
||||||
Alter table Tmp_estate_users
|
|
||||||
rename to estate_users;
|
|
||||||
|
|
||||||
CREATE INDEX IX_estate_users ON estate_users
|
|
||||||
(
|
|
||||||
"EstateID"
|
|
||||||
);
|
|
||||||
|
|
||||||
COMMIT;
|
|
||||||
|
|
||||||
|
|
||||||
:VERSION 7
|
|
||||||
|
|
||||||
BEGIN TRANSACTION;
|
|
||||||
|
|
||||||
CREATE TABLE Tmp_estateban
|
|
||||||
(
|
|
||||||
"EstateID" int NOT NULL,
|
|
||||||
"bannedUUID" uuid NOT NULL,
|
|
||||||
"bannedIp" varchar(16) NULL,
|
|
||||||
"bannedIpHostMask" varchar(16) NULL,
|
|
||||||
"bannedNameMask" varchar(64) NULL
|
|
||||||
);
|
|
||||||
|
|
||||||
INSERT INTO Tmp_estateban ("EstateID", "bannedUUID", "bannedIp", "bannedIpHostMask", "bannedNameMask")
|
|
||||||
SELECT "EstateID", cast("bannedUUID" as uuid), "bannedIp", "bannedIpHostMask", "bannedNameMask" FROM estateban ;
|
|
||||||
|
|
||||||
DROP TABLE estateban;
|
|
||||||
|
|
||||||
Alter table Tmp_estateban
|
|
||||||
rename to estateban;
|
|
||||||
|
|
||||||
CREATE INDEX IX_estateban ON estateban
|
|
||||||
(
|
|
||||||
"EstateID"
|
|
||||||
);
|
|
||||||
|
|
||||||
COMMIT;
|
|
||||||
|
|
||||||
|
|
||||||
:VERSION 8
|
|
||||||
|
|
||||||
BEGIN TRANSACTION;
|
|
||||||
|
|
||||||
CREATE TABLE Tmp_estate_settings
|
|
||||||
(
|
|
||||||
"EstateID" integer default nextval('estate_settings_id') NOT NULL,
|
|
||||||
"EstateName" varchar(64) NULL DEFAULT (NULL),
|
|
||||||
"AbuseEmailToEstateOwner" boolean NOT NULL,
|
|
||||||
"DenyAnonymous" boolean NOT NULL,
|
|
||||||
"ResetHomeOnTeleport" boolean NOT NULL,
|
|
||||||
"FixedSun" boolean NOT NULL,
|
|
||||||
"DenyTransacted" boolean NOT NULL,
|
|
||||||
"BlockDwell" boolean NOT NULL,
|
|
||||||
"DenyIdentified" boolean NOT NULL,
|
|
||||||
"AllowVoice" boolean NOT NULL,
|
|
||||||
"UseGlobalTime" boolean NOT NULL,
|
|
||||||
"PricePerMeter" int NOT NULL,
|
|
||||||
"TaxFree" boolean NOT NULL,
|
|
||||||
"AllowDirectTeleport" boolean NOT NULL,
|
|
||||||
"RedirectGridX" int NOT NULL,
|
|
||||||
"RedirectGridY" int NOT NULL,
|
|
||||||
"ParentEstateID" int NOT NULL,
|
|
||||||
"SunPosition" double precision NOT NULL,
|
|
||||||
"EstateSkipScripts" boolean NOT NULL,
|
|
||||||
"BillableFactor" double precision NOT NULL,
|
|
||||||
"PublicAccess" boolean NOT NULL,
|
|
||||||
"AbuseEmail" varchar(255) NOT NULL,
|
|
||||||
"EstateOwner" uuid NOT NULL,
|
"EstateOwner" uuid NOT NULL,
|
||||||
"DenyMinors" boolean NOT NULL
|
"DenyMinors" bool NOT NULL,
|
||||||
);
|
"AllowLandmark" bool NOT NULL DEFAULT true,
|
||||||
|
"AllowParcelChanges" bool NOT NULL DEFAULT true,
|
||||||
|
"AllowSetHome" bool NOT NULL DEFAULT true
|
||||||
|
)
|
||||||
|
WITH (OIDS=FALSE);
|
||||||
|
|
||||||
INSERT INTO Tmp_estate_settings ("EstateID", "EstateName", "AbuseEmailToEstateOwner", "DenyAnonymous", "ResetHomeOnTeleport", "FixedSun", "DenyTransacted", "BlockDwell", "DenyIdentified", "AllowVoice", "UseGlobalTime", "PricePerMeter", "TaxFree", "AllowDirectTeleport", "RedirectGridX", "RedirectGridY", "ParentEstateID", "SunPosition", "EstateSkipScripts", "BillableFactor", "PublicAccess", "AbuseEmail", "EstateOwner", "DenyMinors")
|
-- Primary key structure for table estate_settings
|
||||||
SELECT "EstateID", "EstateName", "AbuseEmailToEstateOwner", "DenyAnonymous", "ResetHomeOnTeleport", "FixedSun", "DenyTransacted", "BlockDwell", "DenyIdentified", "AllowVoice", "UseGlobalTime", "PricePerMeter", "TaxFree", "AllowDirectTeleport", "RedirectGridX", "RedirectGridY", "ParentEstateID", "SunPosition", "EstateSkipScripts", "BillableFactor", "PublicAccess", "AbuseEmail", cast("EstateOwner" as uuid), "DenyMinors" FROM estate_settings ;
|
-- ----------------------------
|
||||||
|
ALTER TABLE "public"."estate_settings" ADD PRIMARY KEY ("EstateID") NOT DEFERRABLE INITIALLY IMMEDIATE;
|
||||||
|
|
||||||
DROP TABLE estate_settings;
|
-- ----------------------------
|
||||||
|
-- Table structure for estate_users
|
||||||
|
-- ----------------------------
|
||||||
|
CREATE TABLE IF NOT EXISTS "public"."estate_users" (
|
||||||
|
"EstateID" int4 NOT NULL,
|
||||||
|
"uuid" uuid NOT NULL
|
||||||
|
)
|
||||||
|
WITH (OIDS=FALSE);
|
||||||
|
|
||||||
|
-- Indexes structure for table estate_users
|
||||||
|
-- ----------------------------
|
||||||
|
CREATE INDEX IF NOT EXISTS "ix_estate_users" ON "public"."estate_users" USING btree("EstateID" "pg_catalog"."int4_ops" ASC NULLS LAST);
|
||||||
|
|
||||||
Alter table Tmp_estate_settings
|
-- ----------------------------
|
||||||
rename to estate_settings;
|
-- Table structure for estateban
|
||||||
|
-- ----------------------------
|
||||||
|
CREATE TABLE IF NOT EXISTS "public"."estateban" (
|
||||||
|
"EstateID" int4 NOT NULL,
|
||||||
|
"bannedUUID" uuid NOT NULL,
|
||||||
|
"bannedIp" varchar(16) COLLATE "default",
|
||||||
|
"bannedIpHostMask" varchar(16) COLLATE "default",
|
||||||
|
"bannedNameMask" varchar(64) COLLATE "default"
|
||||||
|
)
|
||||||
|
WITH (OIDS=FALSE);
|
||||||
|
|
||||||
|
-- Indexes structure for table estateban
|
||||||
Create index on estate_settings (lower("EstateName"));
|
-- ----------------------------
|
||||||
|
CREATE INDEX IF NOT EXISTS "ix_estateban" ON "public"."estateban" USING btree("EstateID" "pg_catalog"."int4_ops" ASC NULLS LAST);
|
||||||
|
|
||||||
COMMIT;
|
COMMIT;
|
||||||
|
|
||||||
|
|
||||||
:VERSION 9
|
|
||||||
|
|
||||||
BEGIN TRANSACTION;
|
|
||||||
|
|
||||||
CREATE TABLE Tmp_estate_map
|
|
||||||
(
|
|
||||||
"RegionID" uuid NOT NULL DEFAULT ('00000000-0000-0000-0000-000000000000'),
|
|
||||||
"EstateID" int NOT NULL
|
|
||||||
);
|
|
||||||
|
|
||||||
INSERT INTO Tmp_estate_map ("RegionID", "EstateID")
|
|
||||||
SELECT cast("RegionID" as uuid), "EstateID" FROM estate_map ;
|
|
||||||
|
|
||||||
DROP TABLE estate_map;
|
|
||||||
|
|
||||||
Alter table Tmp_estate_map
|
|
||||||
rename to estate_map;
|
|
||||||
|
|
||||||
COMMIT;
|
|
||||||
|
|
||||||
:VERSION 10
|
|
||||||
|
|
||||||
BEGIN TRANSACTION;
|
|
||||||
ALTER TABLE estate_settings ADD COLUMN "AllowLandmark" boolean NOT NULL default true;
|
|
||||||
ALTER TABLE estate_settings ADD COLUMN "AllowParcelChanges" boolean NOT NULL default true;
|
|
||||||
ALTER TABLE estate_settings ADD COLUMN "AllowSetHome" boolean NOT NULL default true;
|
|
||||||
COMMIT;
|
|
||||||
|
|
||||||
:VERSION 11
|
|
||||||
|
|
||||||
Begin transaction;
|
|
||||||
|
|
||||||
|
|
||||||
Commit;
|
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,7 @@ using System.Diagnostics;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
using System.Runtime;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
using System.Timers;
|
using System.Timers;
|
||||||
|
@ -124,8 +125,11 @@ namespace OpenSim
|
||||||
Util.InitThreadPool(stpMinThreads, stpMaxThreads);
|
Util.InitThreadPool(stpMinThreads, stpMaxThreads);
|
||||||
|
|
||||||
m_log.Info("[OPENSIM MAIN]: Using async_call_method " + Util.FireAndForgetMethod);
|
m_log.Info("[OPENSIM MAIN]: Using async_call_method " + Util.FireAndForgetMethod);
|
||||||
|
|
||||||
|
m_log.InfoFormat("[OPENSIM MAIN] Running GC in {0} mode", GCSettings.IsServerGC ? "server":"workstation");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (_MONO)
|
||||||
private static Mono.Unix.UnixSignal[] signals;
|
private static Mono.Unix.UnixSignal[] signals;
|
||||||
|
|
||||||
|
|
||||||
|
@ -140,6 +144,7 @@ namespace OpenSim
|
||||||
MainConsole.Instance.RunCommand("shutdown");
|
MainConsole.Instance.RunCommand("shutdown");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
#endif
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Performs initialisation of the scene, such as loading configuration from disk.
|
/// Performs initialisation of the scene, such as loading configuration from disk.
|
||||||
|
@ -150,6 +155,7 @@ namespace OpenSim
|
||||||
m_log.Info("========================= STARTING OPENSIM =========================");
|
m_log.Info("========================= STARTING OPENSIM =========================");
|
||||||
m_log.Info("====================================================================");
|
m_log.Info("====================================================================");
|
||||||
|
|
||||||
|
#if (_MONO)
|
||||||
if(!Util.IsWindows())
|
if(!Util.IsWindows())
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
@ -168,6 +174,7 @@ namespace OpenSim
|
||||||
m_log.Debug("Exception was: ", e);
|
m_log.Debug("Exception was: ", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
//m_log.InfoFormat("[OPENSIM MAIN]: GC Is Server GC: {0}", GCSettings.IsServerGC.ToString());
|
//m_log.InfoFormat("[OPENSIM MAIN]: GC Is Server GC: {0}", GCSettings.IsServerGC.ToString());
|
||||||
// http://msdn.microsoft.com/en-us/library/bb384202.aspx
|
// http://msdn.microsoft.com/en-us/library/bb384202.aspx
|
||||||
//GCSettings.LatencyMode = GCLatencyMode.Batch;
|
//GCSettings.LatencyMode = GCLatencyMode.Batch;
|
||||||
|
|
|
@ -61,8 +61,9 @@ namespace OpenSim.Server.Base
|
||||||
//
|
//
|
||||||
private bool m_Running = true;
|
private bool m_Running = true;
|
||||||
|
|
||||||
|
#if (_MONO)
|
||||||
private static Mono.Unix.UnixSignal[] signals;
|
private static Mono.Unix.UnixSignal[] signals;
|
||||||
|
#endif
|
||||||
|
|
||||||
// Handle all the automagical stuff
|
// Handle all the automagical stuff
|
||||||
//
|
//
|
||||||
|
@ -186,6 +187,7 @@ namespace OpenSim.Server.Base
|
||||||
RegisterCommonCommands();
|
RegisterCommonCommands();
|
||||||
RegisterCommonComponents(Config);
|
RegisterCommonComponents(Config);
|
||||||
|
|
||||||
|
#if (_MONO)
|
||||||
Thread signal_thread = new Thread (delegate ()
|
Thread signal_thread = new Thread (delegate ()
|
||||||
{
|
{
|
||||||
while (true)
|
while (true)
|
||||||
|
@ -218,6 +220,7 @@ namespace OpenSim.Server.Base
|
||||||
m_log.Debug("Exception was: ", e);
|
m_log.Debug("Exception was: ", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Allow derived classes to perform initialization that
|
// Allow derived classes to perform initialization that
|
||||||
// needs to be done after the console has opened
|
// needs to be done after the console has opened
|
||||||
|
|
Binary file not shown.
|
@ -5,8 +5,6 @@
|
||||||
</configSections>
|
</configSections>
|
||||||
<runtime>
|
<runtime>
|
||||||
<loadFromRemoteSources enabled="true" />
|
<loadFromRemoteSources enabled="true" />
|
||||||
<gcConcurrent enabled="true" />
|
|
||||||
<gcServer enabled="true" />
|
|
||||||
</runtime>
|
</runtime>
|
||||||
<appSettings>
|
<appSettings>
|
||||||
</appSettings>
|
</appSettings>
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
</configSections>
|
</configSections>
|
||||||
<runtime>
|
<runtime>
|
||||||
<loadFromRemoteSources enabled="true" />
|
<loadFromRemoteSources enabled="true" />
|
||||||
<gcConcurrent enabled="true" />
|
|
||||||
<gcServer enabled="true" />
|
|
||||||
</runtime>
|
</runtime>
|
||||||
<appSettings>
|
<appSettings>
|
||||||
</appSettings>
|
</appSettings>
|
||||||
|
|
Loading…
Reference in New Issue