mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-09 19:01:41 +00:00
added display name to users
This commit is contained in:
parent
cbb8950b46
commit
c0294f4c39
16 changed files with 112 additions and 14 deletions
22
server/migrations/v2.24.1-add-user-display-name.js
Normal file
22
server/migrations/v2.24.1-add-user-display-name.js
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
const { DataTypes } = require('sequelize')
|
||||
|
||||
async function up({ context: { queryInterface, logger } }) {
|
||||
logger.info('[Migration] Adding displayName column to users table')
|
||||
|
||||
await queryInterface.addColumn('users', 'displayName', {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: true
|
||||
})
|
||||
|
||||
logger.info('[Migration] Successfully added displayName column to users table')
|
||||
}
|
||||
|
||||
async function down({ context: { queryInterface, logger } }) {
|
||||
logger.info('[Migration] Removing displayName column from users table')
|
||||
|
||||
await queryInterface.removeColumn('users', 'displayName')
|
||||
|
||||
logger.info('[Migration] Successfully removed displayName column from users table')
|
||||
}
|
||||
|
||||
module.exports = { up, down }
|
||||
Loading…
Add table
Add a link
Reference in a new issue