Remove require from isdownloadable migration

This commit is contained in:
advplyr 2024-12-29 16:30:21 -06:00
parent 85d32a1606
commit 78e2c68601

View file

@ -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
}) })