From 3b6411991ef0805db4dff9f302088b0b2d0fd804 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Mon, 17 Aug 2020 10:13:27 +0200 Subject: [PATCH] Update migration script --- migration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/migration.py b/migration.py index c3ac02d..da6b8c7 100644 --- a/migration.py +++ b/migration.py @@ -26,8 +26,8 @@ def main(): ) if line[6] is not None: db_c.execute( - "INSERT INTO articles_page(article_ptr_id) VALUES (?);", - (ret.lastrowid,), + "INSERT INTO articles_page(article_ptr_id, position) VALUES (?, ?);", + (ret.lastrowid, line[6]), ) db.commit()