-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Flyway and move migrations to Sequelize #97
Conversation
Without passing in additional configuration options.
You can use dotenv to load the enviornment variable and it is much cleaner than exporting than manually.
I looked into a bunch of ways of doing this automatically but none of them worked with the current version of sequelize but it is the most asked for plus-oned feature there is. I just ended up writting it up manually.
Additionally remove flyway migraions and add deploy documentation.
This has the correct redirects.
Now `yarn run sequelize -- db:migrate:undo` works.
resolving merge conflict due to capitalization file name change (Database.md -> database.md)
…ize migration system
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rmeritz Looks good. I added some more to the documentation for changing a flyway managed db to sequelize management. Nonblocking question: what is server/migrations/.gitignore
for?
@@ -13,6 +13,8 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |||
# conflict with that of another project. | |||
config.vm.network :private_network, ip: '192.168.10.40' | |||
|
|||
config.vm.post_up_message = 'The app is now running at http://192.168.10.40/' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vagrant changes with config update work beautifully!
yarn run dotenv -e config/dev.env psql |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome!
const Promise = require('bluebird'); | ||
const fs = require('fs'); | ||
|
||
module.exports = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this, and I think it's ok to create our initial state from the flyway dump.
@@ -0,0 +1,15 @@ | |||
'use strict'; | |||
|
|||
module.exports = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
@@ -0,0 +1,15 @@ | |||
'use strict'; | |||
|
|||
module.exports = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
@@ -0,0 +1,15 @@ | |||
'use strict'; | |||
|
|||
module.exports = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Loving these seeders!
Your docs look really good. Thanks!
It can be removed. It was added so that the folder would be tracked by git even though there was nothing it in. But then I put stuff in the folder and it became irrelevant. It had made since at some point though. |
json
datatypes to ajsonb
dotfile-cli
as a way to easily load the environment variablesyarn run sequelize -- <ARGS>