@leapfrogtechnology/sync-db
Advanced tools
Comparing version
@@ -94,3 +94,3 @@ "use strict"; | ||
else { | ||
logger_1.log('Connections file not provided.'); | ||
logger_1.log('Connections file not provided. Loading connection details from env.'); | ||
connections = resolveConnectionsFromEnv(); | ||
@@ -97,0 +97,0 @@ } |
@@ -34,3 +34,3 @@ "use strict"; | ||
} | ||
// Run the migration scripts. | ||
// Run the synchronization scripts. | ||
await sqlRunner.runSequentially(trx, sqlScripts, connectionId); | ||
@@ -37,0 +37,0 @@ if (postMigrationScripts.length > 0) { |
@@ -22,12 +22,10 @@ "use strict"; | ||
catch (err) { | ||
const errors = err; | ||
if (errors.originalError) { | ||
result.push(errors.originalError); | ||
const error = err; | ||
if (error.error) { | ||
throw error.error; | ||
} | ||
else if (errors.error) { | ||
result.push(errors.error); | ||
if (error.originalError) { | ||
throw error.originalError; | ||
} | ||
else { | ||
throw err; | ||
} | ||
throw error; | ||
} | ||
@@ -34,0 +32,0 @@ } |
{ | ||
"name": "@leapfrogtechnology/sync-db", | ||
"description": "Command line utility to synchronize and version control relational database objects across databases", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
@@ -47,3 +47,3 @@ # sync-db | ||
$ sync-db (-v|--version|version) | ||
@leapfrogtechnology/sync-db/1.1.0 linux-x64 node-v19.3.0 | ||
@leapfrogtechnology/sync-db/1.1.1 linux-x64 node-v19.3.0 | ||
$ sync-db --help [COMMAND] | ||
@@ -82,3 +82,3 @@ USAGE | ||
_See code: [src/commands/index.ts](https://github.com/leapfrogtechnology/sync-db/blob/v1.1.0/src/commands/index.ts)_ | ||
_See code: [src/commands/index.ts](https://github.com/leapfrogtechnology/sync-db/blob/v1.1.1/src/commands/index.ts)_ | ||
@@ -120,3 +120,3 @@ ## `sync-db help [COMMAND]` | ||
_See code: [src/commands/make.ts](https://github.com/leapfrogtechnology/sync-db/blob/v1.1.0/src/commands/make.ts)_ | ||
_See code: [src/commands/make.ts](https://github.com/leapfrogtechnology/sync-db/blob/v1.1.1/src/commands/make.ts)_ | ||
@@ -135,3 +135,3 @@ ## `sync-db make-publish` | ||
_See code: [src/commands/make-publish.ts](https://github.com/leapfrogtechnology/sync-db/blob/v1.1.0/src/commands/make-publish.ts)_ | ||
_See code: [src/commands/make-publish.ts](https://github.com/leapfrogtechnology/sync-db/blob/v1.1.1/src/commands/make-publish.ts)_ | ||
@@ -153,3 +153,3 @@ ## `sync-db migrate-latest` | ||
_See code: [src/commands/migrate-latest.ts](https://github.com/leapfrogtechnology/sync-db/blob/v1.1.0/src/commands/migrate-latest.ts)_ | ||
_See code: [src/commands/migrate-latest.ts](https://github.com/leapfrogtechnology/sync-db/blob/v1.1.1/src/commands/migrate-latest.ts)_ | ||
@@ -170,3 +170,3 @@ ## `sync-db migrate-list` | ||
_See code: [src/commands/migrate-list.ts](https://github.com/leapfrogtechnology/sync-db/blob/v1.1.0/src/commands/migrate-list.ts)_ | ||
_See code: [src/commands/migrate-list.ts](https://github.com/leapfrogtechnology/sync-db/blob/v1.1.1/src/commands/migrate-list.ts)_ | ||
@@ -188,3 +188,3 @@ ## `sync-db migrate-rollback` | ||
_See code: [src/commands/migrate-rollback.ts](https://github.com/leapfrogtechnology/sync-db/blob/v1.1.0/src/commands/migrate-rollback.ts)_ | ||
_See code: [src/commands/migrate-rollback.ts](https://github.com/leapfrogtechnology/sync-db/blob/v1.1.1/src/commands/migrate-rollback.ts)_ | ||
@@ -206,3 +206,3 @@ ## `sync-db prune` | ||
_See code: [src/commands/prune.ts](https://github.com/leapfrogtechnology/sync-db/blob/v1.1.0/src/commands/prune.ts)_ | ||
_See code: [src/commands/prune.ts](https://github.com/leapfrogtechnology/sync-db/blob/v1.1.1/src/commands/prune.ts)_ | ||
@@ -226,3 +226,3 @@ ## `sync-db synchronize` | ||
_See code: [src/commands/synchronize.ts](https://github.com/leapfrogtechnology/sync-db/blob/v1.1.0/src/commands/synchronize.ts)_ | ||
_See code: [src/commands/synchronize.ts](https://github.com/leapfrogtechnology/sync-db/blob/v1.1.1/src/commands/synchronize.ts)_ | ||
@@ -229,0 +229,0 @@ <!-- commandsstop --> |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
-100%144412
-0.01%3654
-0.05%