mirror of
https://github.com/linuxserver/heimdalljs.git
synced 2026-02-20 05:12:24 +08:00
simplified migrations for now, added publicPage to users and tags to items
This commit is contained in:
parent
6b35abd723
commit
bd39d59ee5
@ -27,6 +27,14 @@ module.exports = {
|
||||
settings: {
|
||||
type: Sequelize.TEXT
|
||||
},
|
||||
level: {
|
||||
type: Sequelize.TINYINT,
|
||||
defaultValue: 1
|
||||
},
|
||||
publicPage: {
|
||||
type: Sequelize.BOOLEAN,
|
||||
default: false
|
||||
},
|
||||
created_at: {
|
||||
allowNull: false,
|
||||
type: Sequelize.DATE
|
||||
|
||||
@ -48,6 +48,9 @@ module.exports = {
|
||||
config: {
|
||||
type: Sequelize.TEXT
|
||||
},
|
||||
tags: {
|
||||
type: Sequelize.TEXT
|
||||
},
|
||||
created_at: {
|
||||
allowNull: false,
|
||||
type: Sequelize.DATE
|
||||
|
||||
@ -1,15 +0,0 @@
|
||||
'use strict'
|
||||
|
||||
module.exports = {
|
||||
up: async (queryInterface, Sequelize) => {
|
||||
await queryInterface.addColumn('users', 'level', {
|
||||
type: Sequelize.TINYINT,
|
||||
after: 'settings',
|
||||
defaultValue: 1
|
||||
})
|
||||
},
|
||||
|
||||
down: async (queryInterface, Sequelize) => {
|
||||
await queryInterface.removeColumn('users', 'level')
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user