-
Notifications
You must be signed in to change notification settings - Fork 0
/
migrate-mongo-config.js
26 lines (20 loc) · 1.01 KB
/
migrate-mongo-config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/** @type {import("migrate-mongo").config.Config} */
module.exports = {
mongodb: {
// Change (or review) the url to your MongoDB:
url: `${process.env.MongoDb__Url}`,
// Change this to your database name
databaseName: "migrate-mongo"
},
// The migrations dir, can be an relative or absolute path. Only edit this when really necessary.
migrationsDir: "migrations",
// The mongodb collection where the applied changes are stored. Only edit this when really necessary.
changelogCollectionName: "migrations",
// 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,
// Change moduleSystem for migration files. Supported values are "commonjs" and "esm".
moduleSystem: "commonjs"
};