Added info statements to script.

This commit is contained in:
Mike Cao 2020-08-21 02:04:28 -07:00
parent 196652ffd5
commit cc841ca734
1 changed files with 4 additions and 0 deletions

View File

@ -8,7 +8,11 @@ if (!db) {
throw new Error('Database not specified');
}
console.log(`Database detected: ${db}`);
const src = path.resolve(__dirname, `../prisma/schema.${db}.prisma`);
const dest = path.resolve(__dirname, '../prisma/schema.prisma');
fs.copyFileSync(src, dest);
console.log(`Copied ${src} to ${dest}`);