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:
parent
96aa1f7d69
commit
08c769b630
5 changed files with 64 additions and 48 deletions
4
db.js
4
db.js
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue