Removed sync from development environment
This commit is contained in:
parent
ec4f8ab0f4
commit
9fdda99c64
1 changed files with 0 additions and 4 deletions
|
|
@ -29,10 +29,6 @@ async function connectDatabase() {
|
|||
console.log(
|
||||
`[INFO]: Database connection to '${process.env.NODE_ENV}' has been established successfully.`
|
||||
);
|
||||
if (process.env.NODE_ENV == 'development') {
|
||||
await sequelize.sync({ force: 'true' });
|
||||
console.log('[INFO]: Wiping all tables on database');
|
||||
}
|
||||
} catch (error) {
|
||||
console.log('[ERROR]: Unable to connect to the database;', error);
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue