Skip to content

Commit

Permalink
feat: new tiny migration
Browse files Browse the repository at this point in the history
  • Loading branch information
rompemoldes committed Dec 6, 2024
1 parent 6b7dbbc commit f7d17c0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/migrations/20241206171516-integrateBlockNumbers.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
'use strict';

/** @type {import('sequelize-cli').Migration} */
module.exports = {
async up(queryInterface, Sequelize) {
await queryInterface.changeColumn('CTypes', 'block', {
type: Sequelize.BIGINT,
allowNull: true,
});
},

async down(queryInterface, Sequelize) {
await queryInterface.changeColumn('CTypes', 'block', {
type: Sequelize.STRING,
allowNull: true,
});
},
};

0 comments on commit f7d17c0

Please sign in to comment.