mysql-migration 1.2.5 → 1.2.6

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mysql-migration",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "Migration for mysql database",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -68,7 +68,7 @@ async function back_migration(dbName, batch) {
68
68
  if (!fs.existsSync(`${currentPath}/migrations/${dbName}_db/${file.migration}.js`)) {
69
69
  console.warn("\x1b[33m%s\x1b[0m", `Warning: Migration "${file.migration}" not found.`);
70
70
  } else {
71
- const migrationPath = `${currentPath}/migrations/${dbName}_db/${file.migration}`;
71
+ const migrationPath = `${currentPath}/migrations/${dbName}_db/${file.migration}.js`;
72
72
  const migration = await loadModule(migrationPath);
73
73
  try {
74
74
  await migration.down(connection[dbName]);