📅  最后修改于: 2022-03-11 15:05:19.012000             🧑  作者: Mango
//add chown www-data before the database path
const sequelize = new Sequelize({
dialect: 'sqlite',
storage: ' chown www-data ./dev-module/database/database.sqlite',
// sync after each association (see below). If set to false, you need to sync manually after setting all associations. Default: true
syncOnAssociation: true,
});