From 8c493f8fabe20436b0a95c7ebfcf82bb1a525a25 Mon Sep 17 00:00:00 2001 From: Adrien Date: Sun, 10 Sep 2023 11:46:24 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Remove=20pg=5Ftrgm=20creat?= =?UTF-8?q?ion=20from=20the=20db=20session=20init?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The pg_trgm extension will be created during db init, by the db-updated image. --- backend/backend/db/db.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/backend/backend/db/db.py b/backend/backend/db/db.py index 28dbd18..0dac1b1 100644 --- a/backend/backend/db/db.py +++ b/backend/backend/db/db.py @@ -61,9 +61,6 @@ class Database: while not ret: try: async with self._async_engine.begin() as session: - await session.execute( - text("CREATE EXTENSION IF NOT EXISTS pg_trgm;") - ) if clear_static_data: await session.run_sync(Base.metadata.drop_all) await session.run_sync(Base.metadata.create_all)