1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-24 21:39:36 +02:00

Changing bookmark category

This commit is contained in:
unknown 2021-06-05 15:48:43 +02:00
parent 96aa1f7d69
commit 08c769b630
5 changed files with 64 additions and 48 deletions

4
db.js
View file

@ -2,13 +2,15 @@ const { Sequelize } = require('sequelize');
const sequelize = new Sequelize({
dialect: 'sqlite',
storage: './db.sqlite'
storage: './data/db.sqlite',
logging: false
});
const connectDB = async () => {
try {
await sequelize.authenticate({ logging: false });
console.log('Connected to database'.cyan.underline);
await sequelize.sync({
// alter: true,
logging: false