diff options
author | David Mehren | 2021-02-27 21:33:05 +0100 |
---|---|---|
committer | David Mehren | 2021-02-27 21:33:05 +0100 |
commit | 0db862f3c9318f3e214d6b09604760a9844dcfd5 (patch) | |
tree | 4db476be820a6cd94136f238c693221c4d6db1d5 /package.json | |
parent | 6186e0f48f3414e9de4ab5f864c2d153aa995c51 (diff) |
Run database migrations automatically on startup
This commit removes the need for separate migrations with the sequelize-cli
by running them with umzug on application startup.
This is a port of #384
Co-authored-by: Sheogorath <sheogorath@shivering-isles.com>
Signed-off-by: David Mehren <git@herrmehren.de>
Diffstat (limited to '')
-rw-r--r-- | package.json | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package.json b/package.json index 71fc5ab1..aacb0d23 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "dev": "webpack --config webpack.dev.js --progress --watch", "heroku-prebuild": "bin/heroku", "build": "webpack --config webpack.prod.js --progress", - "start": "sequelize db:migrate && node app.js" + "start": "node app.js" }, "dependencies": { "@passport-next/passport-openid": "^1.0.0", @@ -117,7 +117,6 @@ "scrypt-kdf": "^2.0.1", "select2": "^3.5.2-browserify", "sequelize": "^5.21.1", - "sequelize-cli": "^6.0.0", "shortid": "2.2.16", "socket.io": "^2.1.1", "socket.io-client": "^2.1.1", @@ -128,6 +127,7 @@ "tedious": "^6.6.0", "toobusy-js": "^0.5.1", "turndown": "^7.0.0", + "umzug": "^2.3.0", "uuid": "^8.0.0", "validator": "^13.0.0", "velocity-animate": "^1.4.0", |