Fix video source size column on db migration

pull/6357/head
Chocobozzz 2024-04-22 14:41:24 +02:00
parent aa1ea0b6c8
commit b824480af7
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 25 additions and 1 deletions

View File

@ -45,7 +45,7 @@ import { cpus } from 'os'
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
const LAST_MIGRATION_VERSION = 830 const LAST_MIGRATION_VERSION = 835
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------

View File

@ -0,0 +1,24 @@
import * as Sequelize from 'sequelize'
async function up (utils: {
transaction: Sequelize.Transaction
queryInterface: Sequelize.QueryInterface
sequelize: Sequelize.Sequelize
}): Promise<void> {
const { transaction } = utils
{
await utils.queryInterface.changeColumn('videoSource', 'size', {
type: Sequelize.BIGINT,
allowNull: true
}, { transaction })
}
}
function down (options) {
throw new Error('Not implemented.')
}
export {
down, up
}