This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
outline/server/migrations/20160814095336-add-document-createdById.js
2016-08-15 12:51:26 +02:00

22 lines
400 B
JavaScript

'use strict';
module.exports = {
up: function (queryInterface, Sequelize) {
queryInterface.addColumn(
'documents',
'createdById',
{
type: 'UUID',
allowNull: true,
references: {
model: 'users',
},
}
);
},
down: function (queryInterface, Sequelize) {
queryInterface.removeColumn('documents', 'createdById');
},
};