mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 17:55:08 +01:00
fix check-db workflow
This commit is contained in:
parent
43a4357729
commit
b7d64a91bd
@ -68,10 +68,10 @@ async function checkV1Tables() {
|
|||||||
try {
|
try {
|
||||||
await prisma.$queryRaw`select * from account limit 1`;
|
await prisma.$queryRaw`select * from account limit 1`;
|
||||||
|
|
||||||
console.log('Umami v1 tables detected. To upgrade from v1 to v2 run');
|
error(
|
||||||
console.log('npx @umami/migrate-v1-v2');
|
'Umami v1 tables detected. For how to upgrade from v1 to v2 go to https://umami.is/docs/migrate-v1-v2.',
|
||||||
|
);
|
||||||
process.exit(0);
|
process.exit(1);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// Ignore
|
// Ignore
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user