From 4c576aca1cb8652d88f6673f1d870b53654058d5 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 5 May 2020 16:34:50 +0200 Subject: Fix playlist description length --- .../migrations/0500-playlist-description-length.ts | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 server/initializers/migrations/0500-playlist-description-length.ts (limited to 'server/initializers/migrations') diff --git a/server/initializers/migrations/0500-playlist-description-length.ts b/server/initializers/migrations/0500-playlist-description-length.ts new file mode 100644 index 000000000..f47f3d96a --- /dev/null +++ b/server/initializers/migrations/0500-playlist-description-length.ts @@ -0,0 +1,26 @@ +import * as Sequelize from 'sequelize' + +async function up (utils: { + transaction: Sequelize.Transaction + queryInterface: Sequelize.QueryInterface + sequelize: Sequelize.Sequelize +}): Promise { + + { + const description = { + type: Sequelize.STRING(1000), + allowNull: true + } + await utils.queryInterface.changeColumn('videoPlaylist', 'description', description) + } + +} + +function down (options) { + throw new Error('Not implemented.') +} + +export { + up, + down +} -- cgit v1.2.3