summaryrefslogtreecommitdiff
path: root/lib/models/index.js (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-02-27Run database migrations automatically on startupDavid Mehren1-0/+31
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>
2021-02-15Linter: Fix all lint errorsPhilip Molares1-12/+14
Signed-off-by: Philip Molares <philip.molares@udo.edu>
2019-06-11fix: upgrade sequelize to latest version to fix CVEBoHong Li1-1/+3
Signed-off-by: BoHong Li <a60814billy@gmail.com>
2019-05-31Fix eslint warningsSheogorath1-8/+8
Since we are about to release it's time to finally fix our linting. This patch basically runs eslint --fix and does some further manual fixes. Also it sets up eslint to fail on every warning on order to make warnings visable in the CI process. There should no functional change be introduced. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-11-14switching to eslint for code checkingClaudius Coenen1-0/+1
most rules degraded to WARN, so we don't go insane. This will change over time. The aim is to conform to a common style Signed-off-by: Claudius Coenen <opensource@amenthes.de>
2018-03-25Change config to camel case with backwards compatibilitySheogorath1-2/+2
This refactors the configs a bit to now use camel case everywhere. This change should help to clean up the config interface and make it better understandable. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2017-06-05Fix typo in the db configWu Cheng-Han1-1/+1
2017-05-08refactor(config.js): Extract config fileBoHong Li1-2/+3
* Separate different config source to each files * Freeze config object
2017-05-08refactor: Remove `require` extension filenameBoHong Li1-2/+2
2017-03-15Fix strip null byte in model should cast to string to use replace functionWu Cheng-Han1-0/+1
2017-03-14Use strict mode in all backend filesBoHong Li1-0/+1
add ‘use strict’ in all backend file
2017-03-08Use JavaScript Standard StyleBoHong Li1-35/+33
Introduce JavaScript Standard Style as project style rule, and fixed all fail on backend code.
2017-01-02Refactor data processing to model definitionWu Cheng-Han1-0/+6
2017-01-02Update to remove null byte before saving to DB and remove null byte on changesWu Cheng-Han1-0/+7
2016-12-22Use dburl to configuratebananaappletw1-2/+2
2016-12-22Simplify code for herokubananaappletw1-1/+2
2016-12-22Fix #293bananaappletw1-3/+4
2016-12-12Update sequelize init conditionYukai Huang1-5/+4
2016-12-12Simplify output with sequelize database argumentYukai Huang1-2/+8
2016-04-20Refactor server with Sequelize ORM, refactor server configs, now will show ↵Cheng-Han, Wu1-0/+37
note status (created or updated) and support docs (note alias)