Skip to content

create/dropDatabase failed on postgresql #10030

@ALiangLiang

Description

@ALiangLiang

What are you doing?

In this post says, postgresql not support CREATE DATABASE IF NOT EXISTS.... But in #10027, I use if not exists as MySQL.

I'm trying to fix this issue.

What do you expect to happen?

Run createDatabase correctly on postgresql.

What is actually happening?

Failed with ERROR: syntax error at or near "NOT"

Dialect: postgres
Dialect version: XXX
Database version: sushantdhiman/postgres:9.5
Sequelize version: a7fa316
Tested with latest release: Yes, a7fa316

Note : Your issue may be ignored OR closed by maintainers if it's not tested against latest version OR does not follow issue template.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions