From afcf3a1906759dbed1b01f69b2f5abdd52aeb91d Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Wed, 12 Nov 2025 22:52:51 +0100 Subject: [PATCH] Fix Schematic Move Signed-off-by: Chaoscaot --- CommonCore/SQL/src/de/steamwar/sql/SchematicNode.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CommonCore/SQL/src/de/steamwar/sql/SchematicNode.kt b/CommonCore/SQL/src/de/steamwar/sql/SchematicNode.kt index b997fef0..da0dde5a 100644 --- a/CommonCore/SQL/src/de/steamwar/sql/SchematicNode.kt +++ b/CommonCore/SQL/src/de/steamwar/sql/SchematicNode.kt @@ -149,8 +149,7 @@ class SchematicNode(id: EntityID) : IntEntity(id) { "WITH RECURSIVE R AS (SELECT NodeId, ParentNode FROM EffectiveSchematicNode WHERE NodeId = ? UNION SELECT E.NodeId, E.ParentNode FROM R, EffectiveSchematicNode E WHERE R.ParentNode = E.NodeId AND E.EffectiveOwner = ?) SELECT SN.NodeId, SN.NodeOwner, SN.NodeName, R.ParentNode, SN.LastUpdate, SN.NodeItem, SN.NodeType, SN.NodeRank, SN.Config FROM R INNER JOIN SchematicNode SN ON SN.NodeId = R.NodeId", listOf( IntegerColumnType() to id, - IntegerColumnType() to user.getId(), - IntegerColumnType() to user.getId(), + IntegerColumnType() to user.getId() ), fieldIndex )