adzialocha / hoffnung3000

Platform for decentralized, anonymized, self-curated festivals
https://hoffnung3000.de
GNU Affero General Public License v3.0
36 stars 8 forks source link

Hi problem with simple startup on heroku: Postdeploy exit code was not 0 #106

Closed loyalcollege closed 3 years ago

loyalcollege commented 3 years ago

[31mERROR: Fields must be specified through options.fields

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! hoffnung3000@2.0.1 db:migrate: sequelize db:migrate npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the hoffnung3000@2.0.1 db:migrate script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.  npm ERR! A complete log of this run can be found in: npm ERR! /app/.npm/_logs/2021-01-04T18_21_39_740Z-debug.log 

loyalcollege commented 3 years ago

https://winter2021-loyal.herokuapp.com/

adzialocha commented 3 years ago

Thank you for this @loyalcollege, the API for addConstraints has apparently been updated in Sequelize v6 (https://sequelize.org/master/manual/upgrade-to-v6.html). I've changed it in this commit, the migrations should work again: https://github.com/adzialocha/hoffnung3000/commit/f80cf796f1ef39f46d6300500172fba9accf99d1