fix sync
This commit is contained in:
parent
2f9cdadf01
commit
cd21b345e4
@ -24,7 +24,7 @@ const PORT = process.env.PORT || 3000;
|
|||||||
try {
|
try {
|
||||||
await sequelize.authenticate();
|
await sequelize.authenticate();
|
||||||
// Отключаем автоматическую синхронизацию, так как есть проблемы с ключами
|
// Отключаем автоматическую синхронизацию, так как есть проблемы с ключами
|
||||||
// await sequelize.sync({ alter: true });
|
await sequelize.sync({ alter: true });
|
||||||
console.log('Database connected');
|
console.log('Database connected');
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error('Unable to connect to the database:', err);
|
console.error('Unable to connect to the database:', err);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user