From 6c339c62c63f82f5b76a3eec8d0c7e236198d1e8 Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Tue, 12 Nov 2019 19:26:48 +0100 Subject: [PATCH] Switch to smallint for position keys (x,y,z) in postgres backend --- src/database/database-postgresql.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/database/database-postgresql.cpp b/src/database/database-postgresql.cpp index 20d5482f9..395ffe8d5 100644 --- a/src/database/database-postgresql.cpp +++ b/src/database/database-postgresql.cpp @@ -164,9 +164,9 @@ void MapDatabasePostgreSQL::createDatabase() { createTableIfNotExists("blocks", "CREATE TABLE blocks (" - "posX INT NOT NULL," - "posY INT NOT NULL," - "posZ INT NOT NULL," + "posX smallint NOT NULL," + "posY smallint NOT NULL," + "posZ smallint NOT NULL," "data BYTEA," "PRIMARY KEY (posX,posY,posZ)" ");"