Added created date for new domains
This commit is contained in:
parent
ebe9ff1860
commit
29aec3b030
2
ddns.py
2
ddns.py
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user