Fix Schematic Rename #24

Zusammengeführt
Lixfel hat 4 Commits von fix_schematic_rename nach master 2022-12-14 21:55:33 +01:00 zusammengeführt
Nur Änderungen aus Commit fb9abf4c9c werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -49,8 +49,8 @@ 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.updateFields(new String[]{"NodeName", "ParentNode", "NodeItem", "NodeType", "NodeRank", "ReplaceColor", "AllowReplay", "NodeFormat"}, "NodeId");
private static final Statement create = 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(nodeOwner, nodeName, parentNode, nodeItem, nodeType, nodeRank, replaceColor, allowReplay, nodeFormat, nodeId);
update.update(nodeName, parentNode, nodeItem, nodeType, nodeRank, replaceColor, allowReplay, nodeFormat, nodeId);
this.brCache.clear();
TAB_CACHE.clear();
}