mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
17 lines
410 B
JavaScript
17 lines
410 B
JavaScript
module.exports = {
|
|
up: (queryInterface, Sequelize) => {
|
|
return queryInterface.addColumn('comments', 'fedUserApId', {
|
|
type: Sequelize.STRING,
|
|
references: {
|
|
model: 'fed_users',
|
|
key: 'ap_id'
|
|
},
|
|
onUpdate: 'CASCADE',
|
|
onDelete: 'CASCADE'
|
|
})
|
|
},
|
|
|
|
down: (queryInterface, Sequelize) => {
|
|
return queryInterface.removeColumn('comments', 'fedUserApId')
|
|
}
|
|
}
|