From 2cebd797014561ebc0bfee07ee8b5d83820adb66 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 26 Jul 2018 10:45:10 +0200 Subject: Fix last commit --- server/initializers/migrations/0055-video-uuid.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'server/initializers/migrations') diff --git a/server/initializers/migrations/0055-video-uuid.ts b/server/initializers/migrations/0055-video-uuid.ts index 6db25f193..e0f904080 100644 --- a/server/initializers/migrations/0055-video-uuid.ts +++ b/server/initializers/migrations/0055-video-uuid.ts @@ -1,5 +1,6 @@ import * as Sequelize from 'sequelize' import * as Promise from 'bluebird' +import { Migration } from '../../models/migrations' function up (utils: { transaction: Sequelize.Transaction, @@ -12,7 +13,7 @@ function up (utils: { type: Sequelize.UUID, defaultValue: Sequelize.UUIDV4, allowNull: true - } + } as Migration.UUID return q.addColumn('Videos', 'uuid', dataUUID) .then(() => { @@ -24,7 +25,7 @@ function up (utils: { return utils.sequelize.query(query) }) .then(() => { - dataUUID.defaultValue = null // FIXME:default value cannot be null if string + dataUUID.defaultValue = null return q.changeColumn('Videos', 'uuid', dataUUID) }) -- cgit v1.2.3