Skip to content

Commit

Permalink
refactor: increase network size to 32 characters in the database
Browse files Browse the repository at this point in the history
  • Loading branch information
andreabadesso committed Jan 10, 2025
1 parent a69de12 commit 73da35c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions db/migrations/20250110194443-increase-network-size.js
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('version_data', 'network', {
type: Sequelize.STRING(32),
allowNull: false,
});
},

async down (queryInterface, Sequelize) {
await queryInterface.changeColumn('version_data', 'network', {
type: Sequelize.STRING(8),
allowNull: false,
});
}
};

0 comments on commit 73da35c

Please sign in to comment.