gancio/server/migrations/20191025145312-fed_users.js

27 lines
533 B
JavaScript
Raw Normal View History

2019-10-28 17:33:20 +01:00
'use strict'
2019-10-25 18:43:49 +02:00
2019-09-12 14:59:51 +02:00
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.createTable('fed_users', {
ap_id: {
type: Sequelize.STRING,
primaryKey: true
},
object: {
type: Sequelize.JSON
},
createdAt: {
allowNull: false,
type: Sequelize.DATE
},
updatedAt: {
allowNull: false,
type: Sequelize.DATE
}
2019-10-25 18:43:49 +02:00
})
2019-09-12 14:59:51 +02:00
},
down: (queryInterface, Sequelize) => {
2019-10-25 18:43:49 +02:00
return queryInterface.dropTable('fed_users')
2019-09-12 14:59:51 +02:00
}
2019-10-28 17:33:20 +01:00
}