Skip to content

Commit

Permalink
Allow longer strings than 255 characters for gimme values (#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
niekcandaele authored Oct 27, 2020
1 parent bf6022e commit 28ce600
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions migrations/20201027092742-extend-gimme-value-length.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
'use strict';

module.exports = {
up: async (queryInterface, Sequelize) => {
const { DataTypes } = Sequelize;
/**
* Add altering commands here.
*
* Example:
* await queryInterface.createTable('users', { id: Sequelize.INTEGER });
*/

await queryInterface.changeColumn('gimmeitem', 'value', {
type: DataTypes.TEXT,
});
},

down: async (queryInterface, Sequelize) => {
const { DataTypes } = Sequelize;
/**
* Add reverting commands here.
*
* Example:
* await queryInterface.dropTable('users');
*/
await queryInterface.changeColumn('gimmeitem', 'value', {
type: DataTypes.STRING,
});
}
};

0 comments on commit 28ce600

Please sign in to comment.