-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Labels
breaking changeFor issues and PRs. Changes that break compatibility and require a major version increment.For issues and PRs. Changes that break compatibility and require a major version increment.type: featureDEPRECATED: replace with the "feature" issue typeDEPRECATED: replace with the "feature" issue type
Milestone
Description
It would be great if sequelize will generate PostgreSQL DDL with lower_case_underscored table name and column names. By now underscore option manage foreign keys and create_at, modifed_at fields only.
In short
CREATE TABLE IF NOT EXISTS "Male" ("CamelCase" VARCHAR(255), "created_at" TIMESTAMP WITH TIME ZONE NOT NULL, "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL);
should become
CREATE TABLE IF NOT EXISTS male (camel_case VARCHAR(255), "created_at" TIMESTAMP WITH TIME ZONE NOT NULL, "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL);
my global config is
{
"username": "",
"password": "",
"database": "",
"host": "127.0.0.1",
"dialect": "postgres",
"define":{
"paranoid":false,
"timestamps":true,
"freezeTableName": true,
"underscored": true
}
}
johndagostino, olivierl, maxsummers, Alexsey, jcarty and 45 more
Metadata
Metadata
Assignees
Labels
breaking changeFor issues and PRs. Changes that break compatibility and require a major version increment.For issues and PRs. Changes that break compatibility and require a major version increment.type: featureDEPRECATED: replace with the "feature" issue typeDEPRECATED: replace with the "feature" issue type