@loomcore/api 0.1.89 → 0.1.90

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.
@@ -66,7 +66,7 @@ export class MigrationRunner {
66
66
  this.dbConnection = pool;
67
67
  return new Umzug({
68
68
  migrations: async () => {
69
- const initialSchema = getPostgresInitialSchema(this.config).map(m => ({
69
+ const initialSchema = getPostgresInitialSchema(this.config, this.resetConfig).map(m => ({
70
70
  name: m.name,
71
71
  up: async () => {
72
72
  console.log(` Running [LIBRARY] ${m.name}...`);
@@ -105,7 +105,7 @@ export class MigrationRunner {
105
105
  console.log(`🔎 Looking for migrations in: ${globPattern}`);
106
106
  return new Umzug({
107
107
  migrations: async () => {
108
- const initialSchema = getMongoInitialSchema(this.config).map(m => ({
108
+ const initialSchema = getMongoInitialSchema(this.config, this.resetConfig).map(m => ({
109
109
  name: m.name,
110
110
  up: async () => {
111
111
  console.log(` Running [LIBRARY] ${m.name}...`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loomcore/api",
3
- "version": "0.1.89",
3
+ "version": "0.1.90",
4
4
  "private": false,
5
5
  "description": "Loom Core Api - An opinionated Node.js api using Typescript, Express, and MongoDb or PostgreSQL",
6
6
  "scripts": {