@rws-framework/db 2.4.5 → 2.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/helper/DbHelper.js +1 -1
- package/package.json +1 -1
package/dist/helper/DbHelper.js
CHANGED
|
@@ -83,7 +83,7 @@ class DbHelper {
|
|
|
83
83
|
}
|
|
84
84
|
static async pushDBModels(configService, dbService, leaveFile = false) {
|
|
85
85
|
process.env = { ...process.env, [this.dbUrlVarName]: configService.get('db_url') };
|
|
86
|
-
const schemaPath = path_1.default.join(workspaceRoot, 'node_modules', '.prisma', 'schema.prisma');
|
|
86
|
+
const schemaPath = path_1.default.join(workspaceRoot, 'node_modules', '.prisma', 'client', 'schema.prisma');
|
|
87
87
|
await console_1.rwsShell.runCommand(`${this.detectInstaller()} prisma db push --schema="${schemaPath}"`, process.cwd());
|
|
88
88
|
}
|
|
89
89
|
static async generateModelSections(model, configService) {
|