create/update tables with sequelize

pull/4/head
Cameron Clough 2022-01-21 01:22:24 +00:00
parent bfb3ae41ce
commit 13962efc4b
No known key found for this signature in database
GPG Key ID: BFB3B74B026ED43F
1 changed files with 4 additions and 0 deletions

View File

@ -38,4 +38,8 @@ for (const modelDefiner of modelDefiners) {
modelDefiner(sequelize);
}
// Create tables if they don't exist
// Update columns to match if the table already exists
sequelize.sync({ alter: true });
export default sequelize;