♻️ 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:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user