mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix syntax for primary key tables
This commit is contained in:
parent
f00cab1b55
commit
a51f38e6b8
|
@ -21,7 +21,7 @@ void IDbConnection::FormatCreateRace(char *aBuf, unsigned int BufferSize)
|
|||
"cp22 FLOAT DEFAULT 0, cp23 FLOAT DEFAULT 0, cp24 FLOAT DEFAULT 0, "
|
||||
"cp25 FLOAT DEFAULT 0, "
|
||||
"GameID VARCHAR(64), "
|
||||
"DDNet7 BOOL DEFAULT FALSE"
|
||||
"DDNet7 BOOL DEFAULT FALSE, "
|
||||
"PRIMARY KEY (Map, Name, Time, Timestamp, Server)"
|
||||
");",
|
||||
GetPrefix(), BinaryCollate(), MAX_NAME_LENGTH, BinaryCollate());
|
||||
|
@ -37,7 +37,7 @@ void IDbConnection::FormatCreateTeamrace(char *aBuf, unsigned int BufferSize, co
|
|||
"Time FLOAT DEFAULT 0, "
|
||||
"ID %s NOT NULL, " // VARBINARY(16) for MySQL and BLOB for SQLite
|
||||
"GameID VARCHAR(64), "
|
||||
"DDNet7 BOOL DEFAULT FALSE"
|
||||
"DDNet7 BOOL DEFAULT FALSE, "
|
||||
"PRIMARY KEY (ID, Name)"
|
||||
");",
|
||||
GetPrefix(), BinaryCollate(), MAX_NAME_LENGTH, BinaryCollate(), pIdType);
|
||||
|
|
Loading…
Reference in a new issue