From 951be30edf44ff6120134a4098bac8e98342c83d Mon Sep 17 00:00:00 2001 From: Stijn Bannink Date: Sun, 4 Sep 2022 11:56:46 +0200 Subject: [PATCH 1/2] Readded actionfoto configuration option --- src/main/resources/settings.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/resources/settings.yml b/src/main/resources/settings.yml index e324154..3e48dbf 100755 --- a/src/main/resources/settings.yml +++ b/src/main/resources/settings.yml @@ -15,4 +15,6 @@ sign: title: '&f[&6&lOperator&f]' scan: name: '[TicketScan]' - title: '&f[&6&lTicketScan&f]' \ No newline at end of file + title: '&f[&6&lTicketScan&f]' + +actionfoto: false From 3ad3b5c5c656b07a1c8a726823a26146ed72ada3 Mon Sep 17 00:00:00 2001 From: Stijn Bannink Date: Sun, 4 Sep 2022 20:53:35 +0200 Subject: [PATCH 2/2] Updated datatype of actionfotos image column --- .../themeparkconnector/api/load/objects/DatabaseLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/nl/iobyte/themeparkconnector/api/load/objects/DatabaseLoader.java b/src/main/java/nl/iobyte/themeparkconnector/api/load/objects/DatabaseLoader.java index 80f2fdd..835ac2a 100755 --- a/src/main/java/nl/iobyte/themeparkconnector/api/load/objects/DatabaseLoader.java +++ b/src/main/java/nl/iobyte/themeparkconnector/api/load/objects/DatabaseLoader.java @@ -21,7 +21,7 @@ public class DatabaseLoader implements IDataLoader { if(ThemeParkConnector.getInstance().getAPI().getConfigurationManager().getBoolean(StorageKey.ACTIONFOTO)) { service.execute( "remote", - "CREATE TABLE IF NOT EXISTS actionfotos (id BIGINT(20) NOT NULL AUTO_INCREMENT, uuid VARCHAR(256) NOT NULL, ride VARCHAR(256) NOT NULL, base64 BLOB NOT NULL, date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP(), UNIQUE(uuid, ride), PRIMARY KEY(id))", + "CREATE TABLE IF NOT EXISTS actionfotos (id BIGINT(20) NOT NULL AUTO_INCREMENT, uuid VARCHAR(256) NOT NULL, ride VARCHAR(256) NOT NULL, base64 LONGBLOB NOT NULL, date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP(), UNIQUE(uuid, ride), PRIMARY KEY(id))", null ); }