Update migration script

This commit is contained in:
Gabriel Augendre 2020-08-17 10:13:27 +02:00
parent 731a443209
commit 3b6411991e

View file

@ -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()