Closed carlos-granados closed 3 years ago
@seppevs any chance of a review on this? I want to start work on the implementation of the Sync command
I would like to know if there is any intention of reviewing this with the aim of incorporating it? I want to work on the sync functionality and if this is not going in I will just work in our own fork
Closed since no one seems to give a damn, we'll continue with this in our fork
If we are rolling back our code, the file with the migration may not be available. In that case we would not be able to undo the database changes by running the down() method. This PR adds a new saveFileContents option to the config. If we enable this option, the contents of the migration file will be saved into the database and will be used to run the down migrations.
See the comments in the PR for more info
This is also a first step in the implementation of a
sync
command that will sync your local migration files with the database, running up or down migrations as needed so that whatever is in the database matches what is described in the migration files, allowing you to change the version of your code at willChecklist
npm test
passes and has 100% coverage