aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-12-07 17:22:44 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-12-07 17:22:44 +0100
commitbaeefe22caf8ae6cb58dc40754e5db14b50168bf (patch)
tree67ccfe9629bd7ea69036017c8a959e36e1eab6fd /server/initializers
parent8e7f08b5a5e65195ad6dd3d7850fda57021421f3 (diff)
downloadPeerTube-baeefe22caf8ae6cb58dc40754e5db14b50168bf.tar.gz
PeerTube-baeefe22caf8ae6cb58dc40754e5db14b50168bf.tar.zst
PeerTube-baeefe22caf8ae6cb58dc40754e5db14b50168bf.zip
First upload step is ok
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/constants.ts2
-rw-r--r--server/initializers/migrations/0120-video-null.ts3
2 files changed, 3 insertions, 2 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 3e083fd92..7be7a5f95 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -14,7 +14,7 @@ import { FollowState } from '../../shared/models/accounts/follow.model'
14 14
15// --------------------------------------------------------------------------- 15// ---------------------------------------------------------------------------
16 16
17const LAST_MIGRATION_VERSION = 115 17const LAST_MIGRATION_VERSION = 120
18 18
19// --------------------------------------------------------------------------- 19// ---------------------------------------------------------------------------
20 20
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 }