diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-03-04 10:40:09 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-03-04 10:40:09 +0100 |
commit | ed708d62a677fc75311220739389dfe6b869cfad (patch) | |
tree | e69a3df8efcc6f36f505596186669ffc4dcebbd7 /server/models | |
parent | 4b4660582b370589f942bf74e2e682e47a9dfa0b (diff) | |
download | PeerTube-ed708d62a677fc75311220739389dfe6b869cfad.tar.gz PeerTube-ed708d62a677fc75311220739389dfe6b869cfad.tar.zst PeerTube-ed708d62a677fc75311220739389dfe6b869cfad.zip |
Server: fix migrations with an empty Applications table
Diffstat (limited to 'server/models')
-rw-r--r-- | server/models/application.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/application.js b/server/models/application.js index 46dcfde33..64e1a0540 100644 --- a/server/models/application.js +++ b/server/models/application.js | |||
@@ -31,7 +31,7 @@ function loadMigrationVersion (callback) { | |||
31 | } | 31 | } |
32 | 32 | ||
33 | return this.findOne(query).asCallback(function (err, data) { | 33 | return this.findOne(query).asCallback(function (err, data) { |
34 | const version = data ? data.migrationVersion : 0 | 34 | const version = data ? data.migrationVersion : null |
35 | 35 | ||
36 | return callback(err, version) | 36 | return callback(err, version) |
37 | }) | 37 | }) |