Refactor imports across multiple files to improve code organization and readability.
All checks were successful
CI pipeline / Test & Code Quality (push) Successful in 34s
All checks were successful
CI pipeline / Test & Code Quality (push) Successful in 34s
This commit is contained in:
@@ -67,16 +67,14 @@ async def main(db_path: str) -> None:
|
||||
await conn.execute("PRAGMA foreign_keys = ON")
|
||||
|
||||
if not await table_exists(conn, "bot_settings"):
|
||||
await conn.execute(
|
||||
"""
|
||||
await conn.execute("""
|
||||
CREATE TABLE bot_settings (
|
||||
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
||||
key TEXT NOT NULL UNIQUE,
|
||||
value TEXT NOT NULL,
|
||||
updated_at INTEGER NOT NULL DEFAULT (strftime('%s', 'now'))
|
||||
)
|
||||
"""
|
||||
)
|
||||
""")
|
||||
logger.info("Таблица bot_settings создана")
|
||||
|
||||
for key, value in DEFAULT_SETTINGS:
|
||||
|
||||
Reference in New Issue
Block a user