Error When Creating Table in Comics with Sequelize | postegres

Asked

Viewed 352 times

0

In terminal when executing command yarn sequelize db:migrate to create the table users of Gobarber in the database, returns the following error:

yarn run v1.21.1 $ /home/dev/Documentos/GoBarber/node_modules/.bin/sequelize db:migrate

Sequelize CLI Node: 12.14.1, CLI: 5.5.1, ORM: 5.21.4

Loaded configuration file "src/config/database.js". == 20200208221655-create-users: migrating =======

ERROR: Cannot read property 'toString' of undefined

error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

In the Postbird in Info I have this return of error:

Type: table

Estimate rows count: 0

Total size on disk: 8 KB (Table: 0 Bytes, Indexes: 8 KB, Toast: 0 Bytes)

Source SQL Loading...
Error happen while running pg_dump: 
    pg_dump: server version: 12.1 (Debian 12.1-1.pgdg100+1);
    pg_dump version: 10.10 (Ubuntu 10.10-0ubuntu0.18.04.1) 
    pg_dump: aborting because of server version mismatch

Anything related to any version, did I install something wrong?

1 answer

0

I couldn’t identify the bug, but I did a clean up on Docker with the Prune Ex command: Docker images Prune Docker container Prune and installed again , I also remade the Migration users and it worked.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.