mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-23 15:41:13 +00:00
Fix migration script of revision lacks of definition of primary key
This commit is contained in:
parent
99628a5662
commit
c3a96ff112
1 changed files with 4 additions and 1 deletions
|
@ -4,7 +4,10 @@ module.exports = {
|
|||
up: function (queryInterface, Sequelize) {
|
||||
queryInterface.addColumn('Notes', 'savedAt', Sequelize.DATE);
|
||||
queryInterface.createTable('Revisions', {
|
||||
id: Sequelize.UUID,
|
||||
id: {
|
||||
type: Sequelize.UUID,
|
||||
primaryKey: true
|
||||
},
|
||||
noteId: Sequelize.UUID,
|
||||
patch: Sequelize.TEXT,
|
||||
lastContent: Sequelize.TEXT,
|
||||
|
|
Loading…
Reference in a new issue