@rws-framework/db 3.12.2 → 3.12.4

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.
@@ -358,14 +358,13 @@ datasource db {
358
358
  process.env = { ...process.env, [this.dbUrlVarName]: configService.get('db_url') };
359
359
  const [_, schemaPath] = utils_1.DbUtils.getProcessedSchemaDir();
360
360
  const prismaPath = this.getPrismaExec();
361
- console.log({ prismaPath });
362
361
  // Set environment variables
363
362
  const env = {
364
363
  ...process.env,
365
364
  [this.dbUrlVarName]: configService.get('db_url')
366
365
  };
367
366
  // Execute prisma db push programmatically
368
- (0, child_process_1.execSync)(`node ${prismaPath} db push --schema=${schemaPath} --force-reset`, {
367
+ (0, child_process_1.execSync)(`node ${prismaPath} db push --schema=${schemaPath}`, {
369
368
  cwd: process.cwd(),
370
369
  stdio: 'inherit',
371
370
  env
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rws-framework/db",
3
3
  "private": false,
4
- "version": "3.12.2",
4
+ "version": "3.12.4",
5
5
  "description": "",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -464,9 +464,7 @@ datasource db {
464
464
 
465
465
  const [_, schemaPath] = DbUtils.getProcessedSchemaDir();
466
466
 
467
- const prismaPath = this.getPrismaExec();
468
-
469
- console.log({prismaPath});
467
+ const prismaPath = this.getPrismaExec();
470
468
 
471
469
  // Set environment variables
472
470
  const env = {
@@ -475,7 +473,7 @@ datasource db {
475
473
  };
476
474
 
477
475
  // Execute prisma db push programmatically
478
- execSync(`node ${prismaPath} db push --schema=${schemaPath} --force-reset`, {
476
+ execSync(`node ${prismaPath} db push --schema=${schemaPath}`, {
479
477
  cwd: process.cwd(),
480
478
  stdio: 'inherit',
481
479
  env