Skip to content

db: migrate creates table with plural name, while freezeTableName:true option specified #600

@stonedraider

Description

@stonedraider

What are you doing?
I call db:migrate and it creates table with plural name, though I've specified freezeTableName: true option.

development: {
dialect: "sqlite",
storage:[hidden on purpose],
operatorsAliases: Sequelize.Op,
define: { freezeTableName: true },
query: { raw: true } // Always get raw result
},
What do you expect to happen?
I expect the name of created table to be singular while running db:migrate

What is actually happening?
It creates a valid table , but with plural name. Instead of User it creates Users

Dialect: sqlite
Dialect version: 3.1.13
Database version: 3.1.13
Sequelize version: 4.28.0
Tested with latest release: No

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions