еще один фикс бд админа

This commit is contained in:
107 2025-03-20 09:58:07 +07:00
parent 3891b6c033
commit d194cafb25

View File

@ -1373,6 +1373,8 @@ class Program
}
}
await tableInfo.CloseAsync(); // Закрываем DataReader перед изменением CommandText
if (!fullNameColumnExists)
{
command.CommandText = "ALTER TABLE Admins ADD COLUMN FullName TEXT NOT NULL DEFAULT '';";
@ -1389,6 +1391,7 @@ class Program
// Метод для сохранения администратора в базу данных
private static async Task SaveAdminToDatabase(long chatId, string fullName)
{