Skip to content

Commit

Permalink
Remove require from isdownloadable migration
Browse files Browse the repository at this point in the history
  • Loading branch information
advplyr committed Dec 29, 2024
1 parent 85d32a1 commit 78e2c68
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions server/migrations/v2.17.6-share-add-isdownloadable.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
'use strict'

const { DataTypes } = require('sequelize')

/**
* @typedef MigrationContext
* @property {import('sequelize').QueryInterface} queryInterface - a Sequelize QueryInterface object.
Expand Down Expand Up @@ -29,7 +25,7 @@ async function up({ context: { queryInterface, logger } }) {
if (!tableDescription.isDownloadable) {
logger.info(`${loggerPrefix} Adding isDownloadable column to mediaItemShares table`)
await queryInterface.addColumn('mediaItemShares', 'isDownloadable', {
type: DataTypes.BOOLEAN,
type: queryInterface.sequelize.Sequelize.DataTypes.BOOLEAN,
defaultValue: false,
allowNull: false
})
Expand Down

0 comments on commit 78e2c68

Please sign in to comment.