-
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow longer strings than 255 characters for gimme values (#445)
- Loading branch information
1 parent
bf6022e
commit 28ce600
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}); | ||
} | ||
}; |