gancio-upstream/server/migrations/20191112101545-ap_comment_id.js
2019-11-12 14:32:34 +01:00

19 lines
422 B
JavaScript

'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
})
}
}