Is there a way to block the table name event in migelize.js migrations

I was moving a project from a Windows machine to a Linux machine and I noticed that the table names created by Sequelize migrations are named differently between machines. When the following script is created:

migration.createTable("Interests", {
  id: {
    allowNull: false,
    autoIncrement: true,
    primaryKey: true,
    type: DataTypes.INTEGER
  },
  name: {
    type: DataTypes.STRING
  },
  createdAt: {
    type: DataTypes.DATE,
    allowNull: false
  },
  updatedAt: {
    type: DataTypes.DATE,
    allowNull: false
  }
}).done(done);

      

The Windows table with the name is interests

all lowercase, but on Linux it is interests

capitalized.

Is there a way to make this work stable across all platforms?

+3
node.js sequelize.js case-sensitive


source to share


No one has answered this question yet

Check out similar questions:

124
Sequelize.js: how to use migrations and sync
110
Are table names in MySQL case sensitive?
7
How do I enforce register names of tables and columns in MySql?
3
Sequelize wrong foreign key name when creating tables
1
How to distinguish type in Postgres / Postgis (and use sequelizejs)
0
Sequelize: relation "<tablename>" does not exist when querying a table on seeding
0
Node.js Sequelize primary key UUID + Postgres
0
Sequelize request timestamp format
0
Defining a Sequelize Model for an Existing MySQL Database



All Articles
Loading...
X
Show
Funny
Dev
Pics