[fix] comment ap_id key length

This commit is contained in:
les
2019-11-12 14:32:34 +01:00
parent 998799d9a0
commit 0b92bb2c04
2 changed files with 20 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
'use strict';
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.changeColumn('comments', 'activitypub_id', {
type: Sequelize.STRING,
index: true,
unique: true
})
},
down: (queryInterface, Sequelize) => {
return queryInterface.changeColumn('comments', 'activitypub_id', {
type: Sequelize.STRING(18),
index: true,
unique: true
})
}
}