mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Switch to smallint for position keys (x,y,z) in postgres backend
This commit is contained in:
@@ -164,9 +164,9 @@ void MapDatabasePostgreSQL::createDatabase()
|
|||||||
{
|
{
|
||||||
createTableIfNotExists("blocks",
|
createTableIfNotExists("blocks",
|
||||||
"CREATE TABLE blocks ("
|
"CREATE TABLE blocks ("
|
||||||
"posX INT NOT NULL,"
|
"posX smallint NOT NULL,"
|
||||||
"posY INT NOT NULL,"
|
"posY smallint NOT NULL,"
|
||||||
"posZ INT NOT NULL,"
|
"posZ smallint NOT NULL,"
|
||||||
"data BYTEA,"
|
"data BYTEA,"
|
||||||
"PRIMARY KEY (posX,posY,posZ)"
|
"PRIMARY KEY (posX,posY,posZ)"
|
||||||
");"
|
");"
|
||||||
|
Reference in New Issue
Block a user