mirror of
https://github.com/status-im/codimd.git
synced 2025-01-27 08:24:47 +00:00
Fix migration script of revision lacks of definition of primary key
This commit is contained in:
parent
99628a5662
commit
c3a96ff112
@ -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…
x
Reference in New Issue
Block a user