mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-23 02:06:29 -05:00
25 lines
628 B
JavaScript
25 lines
628 B
JavaScript
|
'use strict';
|
||
|
|
||
|
module.exports = {
|
||
|
up: function (queryInterface, Sequelize) {
|
||
|
queryInterface.addColumn('Notes', 'savedAt', Sequelize.DATE);
|
||
|
queryInterface.createTable('Revisions', {
|
||
|
id: Sequelize.UUID,
|
||
|
noteId: Sequelize.UUID,
|
||
|
patch: Sequelize.TEXT,
|
||
|
lastContent: Sequelize.TEXT,
|
||
|
content: Sequelize.TEXT,
|
||
|
length: Sequelize.INTEGER,
|
||
|
createdAt: Sequelize.DATE,
|
||
|
updatedAt: Sequelize.DATE
|
||
|
});
|
||
|
return;
|
||
|
},
|
||
|
|
||
|
down: function (queryInterface, Sequelize) {
|
||
|
queryInterface.dropTable('Revisions');
|
||
|
queryInterface.removeColumn('Notes', 'savedAt');
|
||
|
return;
|
||
|
}
|
||
|
};
|