fix: Add missing migration
This commit is contained in:
19
lib/migrations/20160112220142-note-add-lastchange.js
Normal file
19
lib/migrations/20160112220142-note-add-lastchange.js
Normal file
@@ -0,0 +1,19 @@
|
||||
'use strict'
|
||||
module.exports = {
|
||||
up: function (queryInterface, Sequelize) {
|
||||
return queryInterface.addColumn('Notes', 'lastchangeuserId', {
|
||||
type: Sequelize.UUID
|
||||
}).then(function () {
|
||||
return queryInterface.addColumn('Notes', 'lastchangeAt', {
|
||||
type: Sequelize.DATE
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
down: function (queryInterface, Sequelize) {
|
||||
return queryInterface.removeColumn('Notes', 'lastchangeAt')
|
||||
.then(function () {
|
||||
return queryInterface.removeColumn('Notes', 'lastchangeuserId')
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user