mirror of
https://github.com/openmax-server/server.git
synced 2026-05-22 19:41:41 +03:00
oops
This commit is contained in:
@@ -13,6 +13,6 @@ class SQLQueries:
|
||||
|
||||
INSERT_USER_DATA = """
|
||||
INSERT INTO user_data
|
||||
(phone, contacts, folders, user_config, chat_config)
|
||||
VALUES (%s, %s, %s, %s, %s)
|
||||
(phone, folders, user_config, chat_config)
|
||||
VALUES (%s, %s, %s, %s)
|
||||
"""
|
||||
@@ -105,7 +105,6 @@ class TelegramBot:
|
||||
self.sql_queries.INSERT_USER_DATA,
|
||||
(
|
||||
new_phone, # phone
|
||||
json.dumps([]), # contacts
|
||||
json.dumps(self.static.USER_FOLDERS), # folders
|
||||
json.dumps(self.static.USER_SETTINGS), # user settings
|
||||
json.dumps({}), # chat_config
|
||||
|
||||
@@ -73,8 +73,8 @@ CREATE TABLE `chat_participants` (
|
||||
CREATE TABLE `contacts` (
|
||||
`owner_id` INT NOT NULL,
|
||||
`contact_id` INT NOT NULL,
|
||||
`custom_firstname` VARCHAR(59),
|
||||
`custom_lastname` VARCHAR(59),
|
||||
`custom_firstname` VARCHAR(64),
|
||||
`custom_lastname` VARCHAR(64),
|
||||
`is_blocked` BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
PRIMARY KEY (`owner_id`, `contact_id`)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user