From 536b96a5f946af9ff26ef7c85aa45d0a0c59b3f3 Mon Sep 17 00:00:00 2001 From: Marijn Doeve Date: Mon, 30 May 2022 21:27:42 +0200 Subject: [PATCH] Set Initial schema version to 4 --- .../org/dynmap/storage/postgresql/PostgreSQLMapStorage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DynmapCore/src/main/java/org/dynmap/storage/postgresql/PostgreSQLMapStorage.java b/DynmapCore/src/main/java/org/dynmap/storage/postgresql/PostgreSQLMapStorage.java index 361e445a..533bd1e9 100644 --- a/DynmapCore/src/main/java/org/dynmap/storage/postgresql/PostgreSQLMapStorage.java +++ b/DynmapCore/src/main/java/org/dynmap/storage/postgresql/PostgreSQLMapStorage.java @@ -468,7 +468,7 @@ public class PostgreSQLMapStorage extends MapStorage { doUpdate(c, "CREATE TABLE " + tableStandaloneFiles + " (FileName VARCHAR(128) NOT NULL, ServerID BIGINT NOT NULL DEFAULT 0, Content BYTEA, PRIMARY KEY (FileName, ServerID))"); doUpdate(c, "CREATE INDEX " + tableMaps + "_idx ON " + tableMaps + "(WorldID, MapID, Variant, ServerID)"); doUpdate(c, "CREATE TABLE " + tableSchemaVersion + " (level INT PRIMARY KEY NOT NULL)"); - doUpdate(c, "INSERT INTO " + tableSchemaVersion + " (level) VALUES (3)"); + doUpdate(c, "INSERT INTO " + tableSchemaVersion + " (level) VALUES (4)"); version = 4; // initialzed to current schema } catch (SQLException x) { logSQLException("Error creating tables", x);