Skip to content

Commit

Permalink
feat: recovered date field in SequelizeMeta table and removed allowNu…
Browse files Browse the repository at this point in the history
…ll: false in SequelizeMigrationsMeta table
  • Loading branch information
AnthonyLzq committed Jul 27, 2022
1 parent 92e660b commit 7271f1b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils/createMigrationTable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ export default async function createMigrationTable(sequelize: Sequelize) {
allowNull: false,
unique: true,
primaryKey: true
},
date: {
type: SequelizeTypescriptDataType.DATE,
defaultValue: Sequelize.fn('now')
}
})
await queryInterface.createTable('SequelizeMigrationsMeta', {
Expand All @@ -31,7 +35,6 @@ export default async function createMigrationTable(sequelize: Sequelize) {
},
date: {
type: SequelizeTypescriptDataType.DATE,
allowNull: false,
defaultValue: Sequelize.fn('now')
}
})
Expand Down

0 comments on commit 7271f1b

Please sign in to comment.