Remove old database for new models of database for blog
This commit is contained in:
@@ -182,6 +182,7 @@ def db_migrate(database):
|
||||
)
|
||||
""")
|
||||
conn.commit()
|
||||
|
||||
if list_posts != None:
|
||||
for post in list_posts:
|
||||
title_id=escape(post[0])
|
||||
@@ -198,6 +199,7 @@ def db_migrate(database):
|
||||
VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)""", (title_id, title, subtitle, category, content, creation_date, last_updated, author, status))
|
||||
#Après le for on commit les transations
|
||||
conn.commit()
|
||||
|
||||
print ("migration de l'anciene base de donnée de blog")
|
||||
|
||||
conn.close()
|
||||
|
||||
Reference in New Issue
Block a user