ExpiredReign
Deity
I'm not really sure where this should go.
It is a vanilla related topic not connected to any mod. Also it is more of a technical issue, but not really a modification problem.
Just a query.
Every game I play the database.log, regardless of the mods, or lack of, I have loaded has this as the first lines:
Now I have done some research and found that, despite my initial thought, this is not a result of there being 2 Primary keys in this table (apparently that is fine if they combine to form 1 key) as is the case with this table.
Firaxis has defined the ArtDefine_StrategicView table this way:
thus 2 Primary Keys.
However, since the log keeps on flagging these as 'not unique', what is the reason for the code not specifying them as unique thusly:
Is this something that should be "fixed" or am I just being overly picky and pedantic?
Just another question in my learning the code.
Moderator Action: Moved to C&C where you should find a better response to you questions. Best of luck.
It is a vanilla related topic not connected to any mod. Also it is more of a technical issue, but not really a modification problem.
Just a query.
Every game I play the database.log, regardless of the mods, or lack of, I have loaded has this as the first lines:
Code:
[94563.640] columns StrategicViewType, TileType are not unique
[94563.640] While executing - 'INSERT INTO ArtDefine_StrategicView(StrategicViewType, TileType, Asset) VALUES(?,?,?)'
[94642.046] columns StrategicViewType, TileType are not unique
[94642.046] While executing - 'INSERT INTO ArtDefine_StrategicView(StrategicViewType, TileType, Asset) VALUES(?,?,?)'
[94657.475]
Now I have done some research and found that, despite my initial thought, this is not a result of there being 2 Primary keys in this table (apparently that is fine if they combine to form 1 key) as is the case with this table.
Firaxis has defined the ArtDefine_StrategicView table this way:
Code:
CREATE TABLE ArtDefine_StrategicView("StrategicViewType" TEXT,
"TileType" TEXT NOT NULL,
"Asset" TEXT NOT NULL,
PRIMARY KEY("StrategicViewType", "TileType"));
thus 2 Primary Keys.
However, since the log keeps on flagging these as 'not unique', what is the reason for the code not specifying them as unique thusly:
Code:
CREATE TABLE ArtDefine_StrategicView("StrategicViewType" TEXT,
"TileType" TEXT NOT NULL,
"Asset" TEXT NOT NULL,
PRIMARY KEY("StrategicViewType", "TileType"),
UNIQUE("StrategicViewType", "TileType"));
Is this something that should be "fixed" or am I just being overly picky and pedantic?
Just another question in my learning the code.
Moderator Action: Moved to C&C where you should find a better response to you questions. Best of luck.