notifications+topics-resolvers-fix
Some checks failed
Deploy on push / deploy (push) Failing after 2m35s
Some checks failed
Deploy on push / deploy (push) Failing after 2m35s
This commit is contained in:
@@ -11,7 +11,7 @@ from ariadne import (
|
||||
|
||||
from orm import collection, community, draft, invite, notification, reaction, shout, topic
|
||||
from orm.author import Author, AuthorBookmark, AuthorFollower, AuthorRating
|
||||
from storage.db import create_table_if_not_exists, local_session
|
||||
from storage.db import create_table_if_not_exists
|
||||
|
||||
# Создаем основные типы
|
||||
query = QueryType()
|
||||
@@ -69,7 +69,7 @@ def create_all_tables() -> None:
|
||||
]
|
||||
|
||||
from storage.db import engine
|
||||
|
||||
|
||||
# Используем одно соединение для всех таблиц, чтобы избежать проблем с транзакциями
|
||||
with engine.connect() as connection:
|
||||
for model in models_in_order:
|
||||
|
||||
Reference in New Issue
Block a user