Merge pull request 'Fix Schematic Rename' (#24) from fix_schematic_rename into master
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Reviewed-on: #24
Dieser Commit ist enthalten in:
Lixfel 2022-12-14 21:55:32 +01:00
Commit c6da22f0be

Datei anzeigen

@ -50,7 +50,7 @@ public class SchematicNode {
private static final Table<SchematicNode> table = new Table<>(SchematicNode.class);
private static final Statement create = table.insertFields(true, "NodeOwner", "NodeName", "ParentNode", "NodeItem", "NodeType");
private static final Statement update = table.insertAll();
private static final Statement update = table.update(Table.PRIMARY, "NodeName", "ParentNode", "NodeItem", "NodeType", "NodeRank", "ReplaceColor", "AllowReplay", "NodeFormat");
private static final Statement delete = table.delete(Table.PRIMARY);
private static final SelectStatement<SchematicNode> byId = table.select(Table.PRIMARY);
@ -447,7 +447,7 @@ public class SchematicNode {
private void updateDB() {
this.lastUpdate = Timestamp.from(Instant.now());
update.update(nodeId, nodeOwner, nodeName, parentNode, lastUpdate, nodeItem, nodeType, nodeRank, replaceColor, allowReplay, nodeFormat);
update.update(nodeName, parentNode, nodeItem, nodeType, nodeRank, replaceColor, allowReplay, nodeFormat, nodeId);
this.brCache.clear();
TAB_CACHE.clear();
}