Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ COPY package.json package-lock*.json ./
RUN npm install

COPY . .

CMD ["npm", "run", "dockerStart"]
44 changes: 44 additions & 0 deletions migrate-mongo-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import dotenv from "dotenv";
dotenv.config();
// In this file you can configure migrate-mongo

const config = {
mongodb: {
// TODO Change (or review) the url to your MongoDB:
url: process.env.MONGODB_CONNECTION_URI,

// TODO Change this to your database name:
databaseName: process.env.DB_NAME,

options: {
// useNewUrlParser: true, // (not needed anymore in mongodb driver 4.x+)
// useUnifiedTopology: true, // (not needed anymore in mongodb driver 4.x+)
// connectTimeoutMS: 3600000, // increase connection timeout to 1 hour
// socketTimeoutMS: 3600000, // increase socket timeout to 1 hour
}
Comment thread
Anushtha-Rathore marked this conversation as resolved.
},

// The migrations dir, can be an relative or absolute path. Only edit this when really necessary.
migrationsDir: "migrations/mongo",
Comment thread
Anushtha-Rathore marked this conversation as resolved.

// The mongodb collection where the applied changes are stored. Only edit this when really necessary.
changelogCollectionName: "changelog",

// The mongodb collection where the lock will be created.
lockCollectionName: "changelog",

// The value in seconds for the TTL index that will be used for the lock. Value of 0 will disable the feature.
lockTtl: 0,

// The file extension to create migrations and search for in migration dir
migrationFileExtension: ".js",

// Enable the algorithm to create a checksum of the file contents and use that in the comparison to determine
// if the file should be run. Requires that scripts are coded to be run multiple times.
useFileHash: false,
Comment thread
Anushtha-Rathore marked this conversation as resolved.

// Don't change this, unless you know what you're doing
moduleSystem: "esm"
};

export default config;
42 changes: 0 additions & 42 deletions migrations/mongo/alerts.js

This file was deleted.

273 changes: 0 additions & 273 deletions migrations/mongo/apiCalls.js

This file was deleted.

Loading