aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/migrations
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-11-01 18:47:57 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-11-01 18:47:57 +0100
commit4b08096b2c58f801e5aad19e38d24ec59dd3e14e (patch)
tree914bc9704c3f32e4366a518369be33b512b56256 /server/initializers/migrations
parentbf2fc85c834f5be016f119f59844e49fe3751e6a (diff)
downloadPeerTube-4b08096b2c58f801e5aad19e38d24ec59dd3e14e.tar.gz
PeerTube-4b08096b2c58f801e5aad19e38d24ec59dd3e14e.tar.zst
PeerTube-4b08096b2c58f801e5aad19e38d24ec59dd3e14e.zip
Server: add endpoint in requests
Diffstat (limited to 'server/initializers/migrations')
-rw-r--r--server/initializers/migrations/0020-requests-endpoint.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/server/initializers/migrations/0020-requests-endpoint.js b/server/initializers/migrations/0020-requests-endpoint.js
new file mode 100644
index 000000000..55feec571
--- /dev/null
+++ b/server/initializers/migrations/0020-requests-endpoint.js
@@ -0,0 +1,15 @@
1/*
2 Set the endpoint videos for requests.
3*/
4
5const mongoose = require('mongoose')
6
7const Request = mongoose.model('Request')
8
9exports.up = function (callback) {
10 Request.update({ }, { endpoint: 'videos' }, callback)
11}
12
13exports.down = function (callback) {
14 throw new Error('Not implemented.')
15}