Reproduction of sequelize issue #11748
Environment
- Sequelize version: 5.21.2
- Node.js version: v10.16.0
- Operating System: Ubuntu 20.04.6 LTS
- Clone the repository and navigate to the root directory.
- Check your Node.js version using the command:
node --version
. Make sure it's at least 10.16.0, or update your Node.js version usingnvm
. - Run either of the following commands: :
npm i
ornpm ci
. - Create database named
_11748
& import filedb_dump.sql
, You can use one of the following commands:- To import from the command line:
psql -U username dbname < dbexport.sql
. - Or, log in to psql and run:
\i <full_path/db_dump.sql>
. - Alternatively, use your GUI client to import the database.
- To import from the command line:
- Add the database details to the db.js file. Provide the following information:
username
password
- Now, run the command:
node index.js
- If everything is working correctly, open the
index.js
and set theexercise_id
(Line Number 26) for which you want to update the empty array in the database. - Run the server again using:
node index.js
- You should see the message:
Tags_ids for ExerciseMetrics updated successfully.
.