♻️ Remove pg_trgm creation from the db session init

The pg_trgm extension will be created during db init, by the db-updated image.
This commit is contained in:
2023-09-10 11:46:24 +02:00
parent 4fce832db5
commit 8c493f8fab

View File

@@ -61,9 +61,6 @@ class Database:
while not ret: while not ret:
try: try:
async with self._async_engine.begin() as session: async with self._async_engine.begin() as session:
await session.execute(
text("CREATE EXTENSION IF NOT EXISTS pg_trgm;")
)
if clear_static_data: if clear_static_data:
await session.run_sync(Base.metadata.drop_all) await session.run_sync(Base.metadata.drop_all)
await session.run_sync(Base.metadata.create_all) await session.run_sync(Base.metadata.create_all)