mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 23:24:46 -04:00
fix: Add missing migration
This commit is contained in:
parent
b2985085d0
commit
6f14822413
7 changed files with 139 additions and 0 deletions
24
lib/migrations/20150504155329-create-users.js
Normal file
24
lib/migrations/20150504155329-create-users.js
Normal file
|
@ -0,0 +1,24 @@
|
|||
'use strict'
|
||||
module.exports = {
|
||||
up: function (queryInterface, Sequelize) {
|
||||
return queryInterface.createTable('Users', {
|
||||
id: {
|
||||
type: Sequelize.UUID,
|
||||
primaryKey: true,
|
||||
defaultValue: Sequelize.UUIDV4
|
||||
},
|
||||
profileid: {
|
||||
type: Sequelize.STRING,
|
||||
unique: true
|
||||
},
|
||||
profile: Sequelize.TEXT,
|
||||
history: Sequelize.TEXT,
|
||||
createdAt: Sequelize.DATE,
|
||||
updatedAt: Sequelize.DATE
|
||||
})
|
||||
},
|
||||
|
||||
down: function (queryInterface, Sequelize) {
|
||||
return queryInterface.dropTable('Users')
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue