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


source to share





All Articles