codimd/lib/migrations/20160420180355-note-add-ali...

14 lines
305 B
JavaScript

'use strict'
module.exports = {
up: function (queryInterface, Sequelize) {
return queryInterface.addColumn('Notes', 'alias', {
type: Sequelize.STRING,
unique: true
})
},
down: function (queryInterface, Sequelize) {
return queryInterface.removeColumn('Notes', 'alias')
}
}