aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/migrations/0120-video-null.ts
diff options
context:
space:
mode:
authorBRAINS YUM <43896676+McFlat@users.noreply.github.com>2018-10-19 01:54:01 -0500
committerChocobozzz <me@florianbigard.com>2018-10-19 08:54:01 +0200
commitd23e6a1c97a6ae3ca8d340a8c9adad268a5be57e (patch)
treee5a11500d446b585716d451dd274e8567d36cd2a /server/initializers/migrations/0120-video-null.ts
parente0628695c3425bf69b5d7a46b24dcdf31892d9b6 (diff)
downloadPeerTube-d23e6a1c97a6ae3ca8d340a8c9adad268a5be57e.tar.gz
PeerTube-d23e6a1c97a6ae3ca8d340a8c9adad268a5be57e.tar.zst
PeerTube-d23e6a1c97a6ae3ca8d340a8c9adad268a5be57e.zip
Feature/description support fields length 1000 (#1267)
* fix migrations to not use config constant values as it can introduce bugs later when they change; (fixes #1259) remove constant fields imports from migrations * add migrations to update description and support fields to 1000 (fixes #1258) * fix client/server account and video_channel description/support fields to be max len 1000 (fixes #1258); fix test Should fail with a too long description; fix test Should fail with a long description; fix test Should fail with a long description; Remove USER.SUPPORT from constants since that field no longer exists; null not false, in migrations/0280-description-support.ts; video support field 1000, oops; * rename migration 0280-description-support.ts -> 0285-description-support.ts; update video support maxlength text
Diffstat (limited to 'server/initializers/migrations/0120-video-null.ts')
-rw-r--r--server/initializers/migrations/0120-video-null.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/initializers/migrations/0120-video-null.ts b/server/initializers/migrations/0120-video-null.ts
index 63f3984dd..6d253f04f 100644
--- a/server/initializers/migrations/0120-video-null.ts
+++ b/server/initializers/migrations/0120-video-null.ts
@@ -1,5 +1,4 @@
1import * as Sequelize from 'sequelize' 1import * as Sequelize from 'sequelize'
2import { CONSTRAINTS_FIELDS } from '../constants'
3 2
4async function up (utils: { 3async function up (utils: {
5 transaction: Sequelize.Transaction, 4 transaction: Sequelize.Transaction,
@@ -28,7 +27,7 @@ async function up (utils: {
28 27
29 { 28 {
30 const data = { 29 const data = {
31 type: Sequelize.STRING(CONSTRAINTS_FIELDS.VIDEOS.DESCRIPTION.max), 30 type: Sequelize.STRING(10000),
32 allowNull: true, 31 allowNull: true,
33 defaultValue: null 32 defaultValue: null
34 } 33 }