sequelize-auto icon indicating copy to clipboard operation
sequelize-auto copied to clipboard

Incorrect import

Open MichaelLeeHobbs opened this issue 3 years ago • 0 comments

DDL providers integer[] default ARRAY []::integer[] not null,

Import

    providers: {
      type: DataTypes.ARRAY(DataTypes.INTEGER),
      allowNull: false,
      defaultValue: [ARRAY[]]
    },

Expected

    providers: {
      type: DataTypes.ARRAY(DataTypes.INTEGER),
      allowNull: false,
      defaultValue: []
    },

I'm not sure what the original DB Dev's where trying to do with the default.

MichaelLeeHobbs avatar Jun 23 '22 14:06 MichaelLeeHobbs