From 9191d83f84c26f8a3794e0f205e1ee9336e6d4e9 Mon Sep 17 00:00:00 2001 From: Untone Date: Tue, 11 Feb 2025 12:24:02 +0300 Subject: [PATCH] usermoved --- services/schema.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/schema.py b/services/schema.py index 06a30261..b8098575 100644 --- a/services/schema.py +++ b/services/schema.py @@ -45,11 +45,11 @@ async def request_graphql_data(gql, url=AUTH_URL, headers=None): def create_all_tables(): """Create all database tables in the correct order.""" - from orm import author, community, draft, notification, reaction, shout, topic, user + from orm import author, community, draft, notification, reaction, shout, topic # Порядок важен - сначала таблицы без внешних ключей, затем зависимые таблицы models_in_order = [ - user.User, # Базовая таблица auth + # user.User, # Базовая таблица auth author.Author, # Базовая таблица community.Community, # Базовая таблица topic.Topic, # Базовая таблица