Somes FIx for datamigration and config.example
This commit is contained in:
@@ -120,18 +120,18 @@ def db_migrate(database):
|
||||
|
||||
|
||||
if not(lost_password_token_col):
|
||||
cursor.execute("""ALTER TABLE Users ADD COLUMN Lost_password_token CHAR(64);""")
|
||||
cursor.execute("""ALTER TABLE users ADD COLUMN Lost_password_token CHAR(64);""")
|
||||
conn.commit()
|
||||
print ("Ajout du champ Lost_password_token dans la table Users")
|
||||
|
||||
if not(totp_col):
|
||||
cursor.execute("""ALTER TABLE Users ADD COLUMN totp CHAR(40);""")
|
||||
cursor.execute("""ALTER TABLE users ADD COLUMN totp CHAR(40);""")
|
||||
conn.commit()
|
||||
print ("Ajout du champ totp dans la table Users")
|
||||
|
||||
|
||||
if not(blog_theme_col):
|
||||
cursor.execute("""ALTER TABLE Blog_posts ADD COLUMN blog_theme TEXT;""")
|
||||
cursor.execute("""ALTER TABLE users ADD COLUMN blog_theme TEXT;""")
|
||||
conn.commit()
|
||||
print ("Ajout du champ blog_theme dans la table Blog")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user