From b3f0787c2e0a60cf548ac6e5290323cae2477940 Mon Sep 17 00:00:00 2001 From: Quentin Januel Date: Mon, 24 Jun 2024 10:22:55 +0900 Subject: [PATCH] fix failing test --- test/node/src/schema.test.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/node/src/schema.test.ts b/test/node/src/schema.test.ts index 1ff181119..3816e4084 100644 --- a/test/node/src/schema.test.ts +++ b/test/node/src/schema.test.ts @@ -1985,6 +1985,14 @@ for (const dialect of DIALECTS) { }) it('should refresh a materialized view concurrently', async () => { + // concurrent refreshes require a unique index + await ctx.db.schema + .createIndex('materialized_dogs_index') + .unique() + .on('materialized_dogs') + .columns(['id']) + .execute() + const builder = ctx.db.schema .refreshMaterializedView('materialized_dogs') .concurrently()