-
Notifications
You must be signed in to change notification settings - Fork 48
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
Fix migration issue #81
Conversation
models.sequelize.query(`select count(*) from | ||
information_schema.tables where table_schema = 'public'`) | ||
.then((data) => { | ||
console.log('found', data) | ||
console.log('found', data); // eslint-disable-line |
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 added this when troubleshooting migration issues a while back. We don't need to keep this console.log anymore either, unless it's useful to you for migration troubleshooting
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.
Removing this as well.
const dbConfig = utils.dbConfigObjectFromDbURL(); | ||
console.log('create db now', dbConfig) | ||
console.log('create db now', dbConfig); // eslint-disable-line |
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.
we don't need to keep this console.log anymore either, unless it's useful to you for migration troubleshooting
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.
Okies sure I am removing this.
@harshkothari410 does this fix the migration issues @meynet hit in heroku? |
Yeah I tested on Heroku so I am assuming that it is fixed. |
@harshkothari410 Resolve conflicts please. |
Is there any specific script we have for sequelize.sync({ force: false }) ? @pallavi2209 |
No. We need to add a call to sequelize sync from the doImport function in db/index.js. |
Nevermind, I noticed a related story on Ian's dashboard for this sprint. Can you resolve conflicts in package.json for this PR? @harshkothari410 |
@harshkothari410 please let me know if you need help resolving the package.json conflicts so we can get this merged. |
Here I removed the checkDB functionality into postinstall and added to prestart. So that there is no issue of private space heroku migration / resetdb issue.
There will be little bit overhead on npm start but it results in lots of simplicity in automatic migration and deployment of new refocus on any platform.