aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/migrations/0120-video-null.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers/migrations/0120-video-null.ts')
-rw-r--r--server/initializers/migrations/0120-video-null.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/initializers/migrations/0120-video-null.ts b/server/initializers/migrations/0120-video-null.ts
index 3506a5046..9130d10ee 100644
--- a/server/initializers/migrations/0120-video-null.ts
+++ b/server/initializers/migrations/0120-video-null.ts
@@ -1,4 +1,5 @@
1import * as Sequelize from 'sequelize' 1import * as Sequelize from 'sequelize'
2import { CONSTRAINTS_FIELDS } from '../constants'
2import { PeerTubeDatabase } from '../database' 3import { PeerTubeDatabase } from '../database'
3 4
4async function up (utils: { 5async function up (utils: {
@@ -28,7 +29,7 @@ async function up (utils: {
28 29
29 { 30 {
30 const data = { 31 const data = {
31 type: Sequelize.INTEGER, 32 type: Sequelize.STRING(CONSTRAINTS_FIELDS.VIDEOS.DESCRIPTION.max),
32 allowNull: true, 33 allowNull: true,
33 defaultValue: null 34 defaultValue: null
34 } 35 }