mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-27 12:08:02 -05:00
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-production81e3d7bd00
f85ba6df53
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
This commit is contained in:
parent
2d3ea1fc61
commit
b3249d9175
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue