We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To reproduce:
Launch a postgres database:
docker run -e POSTGRES_PASSWORD=password -p 5432:5432 postgres:11
Create a directory with this package.json:
package.json
{ "name": "sequelize-test", "scripts": { "db:create": "sequelize db:create --url 'postgres://postgres:password@localhost:5432/database'" }, "dependencies": { "pg": "8.11.3", "sequelize": "6.32.1", "sequelize-cli": "6.6.1" } }
Then run:
$ npm i $ npm run db:create > db:create > sequelize db:create --url 'postgres://postgres:password@localhost:5432/database' Sequelize CLI [Node: 18.16.1, CLI: 6.6.1, ORM: 6.32.1] Parsed url postgres://postgres:*****@localhost:5432/database Database database created. $ npm run db:create > db:create > sequelize db:create --url 'postgres://postgres:password@localhost:5432/database' Sequelize CLI [Node: 18.16.1, CLI: 6.6.1, ORM: 6.32.1] Parsed url postgres://postgres:*****@localhost:5432/database ERROR: database "database" already exists
The second db:create should not fail with an error
db:create
The second db:create is failing with an error : database "database" already exists
database "database" already exists
A previous issue was intended to address it but was closed: #629
Dialect: postgres Database version: 11 Sequelize CLI version: 6.6.1 Sequelize version: 6.32.1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What you are doing?
To reproduce:
Launch a postgres database:
Create a directory with this
package.json
:Then run:
What do you expect to happen?
The second
db:create
should not fail with an errorWhat is actually happening?
The second
db:create
is failing with an error :database "database" already exists
A previous issue was intended to address it but was closed: #629
Dialect: postgres
Database version: 11
Sequelize CLI version: 6.6.1
Sequelize version: 6.32.1
The text was updated successfully, but these errors were encountered: