Skip to content

Commit

Permalink
Update user avatar URL max length
Browse files Browse the repository at this point in the history
  • Loading branch information
ba1uev committed Aug 27, 2024
1 parent f6d145c commit 8036e38
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// @ts-check
const { Sequelize, DataTypes } = require('sequelize')

module.exports = {
async up({ context: queryInterface, appConfig }) {
await queryInterface.changeColumn('users', 'avatar', {
type: DataTypes.STRING(2000),
})
},
async down({ context: queryInterface, appConfig }) {},
}
2 changes: 1 addition & 1 deletion src/modules/users/server/models/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ User.init(
defaultValue: false,
},
avatar: {
type: DataTypes.STRING(1000),
type: DataTypes.STRING(2000),
allowNull: true,
},
jobTitle: {
Expand Down

0 comments on commit 8036e38

Please sign in to comment.