sqlite estatestore: stop using sqlite autoincrement on estateID, look for max value in USE instead. This is slow, but the db should be small; fix min value to 101 ( we should allow special lower values, but not now )

This commit is contained in:
UbitUmarov
2021-08-27 16:21:03 +01:00
parent 5a5c89bc49
commit b363d1f9ee
2 changed files with 17 additions and 19 deletions

View File

@@ -22,7 +22,7 @@ CREATE INDEX estate_map_estate_id on estate_map(EstateID);
CREATE UNIQUE INDEX estate_map_region_id on estate_map(RegionID);
CREATE TABLE IF NOT EXISTS estate_settings (
EstateID INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
EstateID INTEGER NOT NULL PRIMARY KEY,
EstateName varchar(64) default NULL,
AbuseEmailToEstateOwner tinyint(4) NOT NULL,
DenyAnonymous tinyint(4) NOT NULL,