Add primary key to the region table in the reputation schema.
Note this does not actually fix existing DBs, but it should prevent an issue with the region table being filled to the brim with duplicate entries. I still need to either script a path forward for existing tables, or otherwise clean up the duplicate entries.master
parent
3ee83a47fa
commit
8e8f09db9f
|
@ -4,6 +4,7 @@ CREATE TABLE regions(
|
|||
faction TEXT,
|
||||
region TEXT, -- region name (or 'ALL') this faction controls
|
||||
influence NUMERIC,
|
||||
PRIMARY KEY (faction, region),
|
||||
CONSTRAINT influence_range CHECK(influence BETWEEN 0 AND 1)
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue