From ec1fccf17e44948ab585cda97e3ffcfec59ae938 Mon Sep 17 00:00:00 2001 From: rr- Date: Tue, 10 May 2016 09:23:48 +0200 Subject: [PATCH] server/tools: fix swapping imported tag relations --- server/migrate-v1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/migrate-v1 b/server/migrate-v1 index 0fb4aad6..f5fa56dd 100755 --- a/server/migrate-v1 +++ b/server/migrate-v1 @@ -147,11 +147,11 @@ def import_tag_relations(unused_tag_ids, v1_session, v2_session): continue if row['type'] == 1: v2_session.add( - db.TagSuggestion( + db.TagImplication( parent_id=row['tag1id'], child_id=row['tag2id'])) else: v2_session.add( - db.TagImplication( + db.TagSuggestion( parent_id=row['tag1id'], child_id=row['tag2id'])) v2_session.commit()