From dd776eeb152c587bf3e81c94277852795b5b8173 Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Fri, 24 Feb 2023 13:11:40 +0800 Subject: [PATCH] refactor(schemas): fix alteration script The alteration script of moving sie configs to database should test if admin tenant has active user instead of default tenant. --- .../alterations/next-1676956206-move-console-sie-to-database.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/schemas/alterations/next-1676956206-move-console-sie-to-database.ts b/packages/schemas/alterations/next-1676956206-move-console-sie-to-database.ts index 01d9fb0b2..e986af359 100644 --- a/packages/schemas/alterations/next-1676956206-move-console-sie-to-database.ts +++ b/packages/schemas/alterations/next-1676956206-move-console-sie-to-database.ts @@ -48,7 +48,7 @@ const alteration: AlterationScript = { const hasActiveUsers = await pool.exists(sql` select id from users - where tenant_id = 'default' + where tenant_id = 'admin' limit 1 `); await pool.query(sql`