From 8abae5df3eb39fa15af3eb2eab38c11f3677cacd Mon Sep 17 00:00:00 2001 From: adator <85586985+adator85@users.noreply.github.com> Date: Sat, 1 Nov 2025 15:57:46 +0100 Subject: [PATCH] fix db_patch, the table name is no more hard coded! --- core/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/base.py b/core/base.py index 2755125..d56959d 100644 --- a/core/base.py +++ b/core/base.py @@ -599,8 +599,8 @@ class Base: def db_patch(self, table_name: str, column_name: str, column_type: str) -> bool: if not self.db_is_column_exist(table_name, column_name): - patch = f"ALTER TABLE {self.Config.TABLE_ADMIN} ADD COLUMN {column_name} {column_type}" - update_row = f"UPDATE {self.Config.TABLE_ADMIN} SET language = 'EN' WHERE language is null" + patch = f"ALTER TABLE {table_name} ADD COLUMN {column_name} {column_type}" + update_row = f"UPDATE {table_name} SET language = 'EN' WHERE language is null" self.db_execute_query(patch) self.db_execute_query(update_row) self.logs.debug(f"The patch has been applied")