From 29aec3b030596038f4855a3f42c27941e1a7d181 Mon Sep 17 00:00:00 2001 From: rune Date: Tue, 28 Mar 2023 12:16:45 +0200 Subject: [PATCH] Added created date for new domains --- ddns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ddns.py b/ddns.py index c6f8cad..6a6a449 100755 --- a/ddns.py +++ b/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')