From b7d64a91bd430e632e7107ff220bc0e36df94138 Mon Sep 17 00:00:00 2001 From: Francis Cao Date: Fri, 14 Apr 2023 10:24:48 -0700 Subject: [PATCH] fix check-db workflow --- scripts/check-db.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/check-db.js b/scripts/check-db.js index 192536fe..f4913e5d 100644 --- a/scripts/check-db.js +++ b/scripts/check-db.js @@ -68,10 +68,10 @@ async function checkV1Tables() { try { await prisma.$queryRaw`select * from account limit 1`; - console.log('Umami v1 tables detected. To upgrade from v1 to v2 run'); - console.log('npx @umami/migrate-v1-v2'); - - process.exit(0); + error( + 'Umami v1 tables detected. For how to upgrade from v1 to v2 go to https://umami.is/docs/migrate-v1-v2.', + ); + process.exit(1); } catch (e) { // Ignore }