1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Switch to smallint for position keys (x,y,z) in postgres backend

This commit is contained in:
BuckarooBanzay 2019-11-12 19:26:48 +01:00 committed by sfan5
parent 7c619bdc9a
commit 6c339c62c6

View file

@ -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)"
");" ");"