Skip to content

Commit f94300f

Browse files
authored
Updates: Bash Script updated (#594)
1 parent 5a4c50c commit f94300f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/scripts/setup-db.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ const main = async () => {
1212
);
1313
`;
1414

15-
const schema = `./src/prisma/schema.prisma`;
15+
const schema =
16+
process.env.NODE_ENV === "production"
17+
? `./dist/prisma/schema.prisma`
18+
: `./src/prisma/schema.prisma`;
1619

1720
if (hasWalletsTable) {
1821
execSync(`yarn prisma migrate reset --force --schema ${schema}`, {

0 commit comments

Comments
 (0)