From e960b8c1a93fba260d975fd12a29a1ed0265755d Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Sun, 7 Jul 2024 16:27:43 +0100 Subject: [PATCH] create migration --- .../20240707T145623-drop-redundant-pages-slug_id-index.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 apps/server/src/database/migrations/20240707T145623-drop-redundant-pages-slug_id-index.ts diff --git a/apps/server/src/database/migrations/20240707T145623-drop-redundant-pages-slug_id-index.ts b/apps/server/src/database/migrations/20240707T145623-drop-redundant-pages-slug_id-index.ts new file mode 100644 index 00000000..ac2622ab --- /dev/null +++ b/apps/server/src/database/migrations/20240707T145623-drop-redundant-pages-slug_id-index.ts @@ -0,0 +1,7 @@ +import { type Kysely } from 'kysely'; + +export async function up(db: Kysely): Promise { + await db.schema.dropIndex('pages_slug_id_idx').ifExists().execute(); +} + +export async function down(db: Kysely): Promise {}