mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01:00
Added info statements to script.
This commit is contained in:
parent
196652ffd5
commit
cc841ca734
@ -8,7 +8,11 @@ if (!db) {
|
|||||||
throw new Error('Database not specified');
|
throw new Error('Database not specified');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log(`Database detected: ${db}`);
|
||||||
|
|
||||||
const src = path.resolve(__dirname, `../prisma/schema.${db}.prisma`);
|
const src = path.resolve(__dirname, `../prisma/schema.${db}.prisma`);
|
||||||
const dest = path.resolve(__dirname, '../prisma/schema.prisma');
|
const dest = path.resolve(__dirname, '../prisma/schema.prisma');
|
||||||
|
|
||||||
fs.copyFileSync(src, dest);
|
fs.copyFileSync(src, dest);
|
||||||
|
|
||||||
|
console.log(`Copied ${src} to ${dest}`);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user