mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Fix upgrade issues from 1.5 to 1.6
This commit is contained in:
parent
892ca65552
commit
aa46ba62d2
1 changed files with 3 additions and 0 deletions
|
|
@ -1222,6 +1222,9 @@ class Database:
|
|||
# ? As the external column has been replaced by the type column, we need to update the data if the column exists
|
||||
if table_name == "bw_plugins" and external_column is not None:
|
||||
row["type"] = "external" if external_column else "core"
|
||||
elif table_name in ("bw_services", "bw_instances") and "creation_date" not in row:
|
||||
row["creation_date"] = datetime.now().astimezone()
|
||||
row["last_update" if table_name == "bw_services" else "last_seen"] = datetime.now().astimezone()
|
||||
|
||||
with self._db_session() as session:
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue