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