Limit DB schema changes to migrations

Database migrations should be in charge of changing and modifying the
database schema. Therefore this breaking change removes the automatic
model synchronisation from the application startup, that we have
practised way too long and that always caused problems for us.

References:
https://sequelize.org/v5/manual/getting-started.html#note-for-production
81e3d7bd00
f85ba6df53

Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
This commit is contained in:
Sheogorath 2020-04-16 16:15:31 +02:00
parent 2d3ea1fc61
commit b3249d9175
No known key found for this signature in database
GPG key ID: C9B1C80737B9CE18

View file

@ -254,7 +254,7 @@ function startListen () {
}
// sync db then start listen
models.sequelize.sync().then(function () {
models.sequelize.authenticate().then(function () {
// check if realtime is ready
if (realtime.isReady()) {
models.Revision.checkAllNotesRevision(function (err, notes) {