mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-09 19:01:41 +00:00
Remove require from isdownloadable migration
This commit is contained in:
parent
85d32a1606
commit
78e2c68601
1 changed files with 1 additions and 5 deletions
|
|
@ -1,7 +1,3 @@
|
||||||
'use strict'
|
|
||||||
|
|
||||||
const { DataTypes } = require('sequelize')
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef MigrationContext
|
* @typedef MigrationContext
|
||||||
* @property {import('sequelize').QueryInterface} queryInterface - a Sequelize QueryInterface object.
|
* @property {import('sequelize').QueryInterface} queryInterface - a Sequelize QueryInterface object.
|
||||||
|
|
@ -29,7 +25,7 @@ async function up({ context: { queryInterface, logger } }) {
|
||||||
if (!tableDescription.isDownloadable) {
|
if (!tableDescription.isDownloadable) {
|
||||||
logger.info(`${loggerPrefix} Adding isDownloadable column to mediaItemShares table`)
|
logger.info(`${loggerPrefix} Adding isDownloadable column to mediaItemShares table`)
|
||||||
await queryInterface.addColumn('mediaItemShares', 'isDownloadable', {
|
await queryInterface.addColumn('mediaItemShares', 'isDownloadable', {
|
||||||
type: DataTypes.BOOLEAN,
|
type: queryInterface.sequelize.Sequelize.DataTypes.BOOLEAN,
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
allowNull: false
|
allowNull: false
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue