Added created date for new domains

This commit is contained in:
rune 2023-03-28 12:16:45 +02:00
parent ebe9ff1860
commit 29aec3b030

View File

@ -475,7 +475,7 @@ def updatedb():
new_column = 'created'
info = conn.execute("PRAGMA table_info('subdomains')").fetchall()
if not any(new_column in word for word in info):
add_column = "ALTER TABLE subdomains ADD COLUMN created text default '2023-01-01 00:00'"
add_column = "ALTER TABLE subdomains ADD COLUMN created text default '[b]Unknown Info[/b]'"
conn.execute(add_column)
conn.commit()
logging.info(time.strftime("%Y-%m-%d %H:%M") + ' - Info : Database updated')