Fix video source size column on db migration

This commit is contained in:
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
}