Closed dschinkel closed 2 years ago
figured it out finally
const dbmigrate = DBMigrate.getInstance(true, {
config: path.join(__dirname, './database.json'),
env: 'dev',
cmdOptions: {
'migrations-dir': path.join(__dirname, '/migrations/test'),
},
});
Now, I'm sure I have this wrong. Yes I've looked at your docs Yes it's probably something stupid I'm missing but I need another set of eyes on this
Am I passing the key/value pairs in terms of what your API expects as in structure here?
https://db-migrate.readthedocs.io/en/latest/API/programable
So I added an object literal for options but doesn't seem like any of this is quite right in terms of structure in mine so can you verify my structure. I need to be able to specify
migrations-dir
which in this object I just keyed it with anm
.the migrations directory is at the same level as my database.json. And I am running the dbMigrate command from that same directory as well.
Also tried:
and