aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/update-host.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2017-12-13 17:46:23 +0100
committerChocobozzz <me@florianbigard.com>2017-12-13 17:46:23 +0100
commit91fea9fc48a4ce53dd69e0e20f5804ad95a6c27d (patch)
tree1f227acea3e9684928dedbc070cc5fa6b3af42ee /scripts/update-host.ts
parent65b3ed25fc33c63ab2c56372c1a010541f8fddc2 (diff)
downloadPeerTube-91fea9fc48a4ce53dd69e0e20f5804ad95a6c27d.tar.gz
PeerTube-91fea9fc48a4ce53dd69e0e20f5804ad95a6c27d.tar.zst
PeerTube-91fea9fc48a4ce53dd69e0e20f5804ad95a6c27d.zip
Add migration
Diffstat (limited to 'scripts/update-host.ts')
-rwxr-xr-xscripts/update-host.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/update-host.ts b/scripts/update-host.ts
index ba4656b75..eccf203ea 100755
--- a/scripts/update-host.ts
+++ b/scripts/update-host.ts
@@ -1,9 +1,9 @@
1import { getServerAccount } from '../server/helpers' 1import { getServerAccount } from '../server/helpers'
2import { initDatabase } from '../server/initializers' 2import { initDatabaseModels } from '../server/initializers'
3import { AccountFollowModel } from '../server/models/account/account-follow' 3import { AccountFollowModel } from '../server/models/account/account-follow'
4import { VideoModel } from '../server/models/video/video' 4import { VideoModel } from '../server/models/video/video'
5 5
6initDatabase(true) 6initDatabaseModels(true)
7 .then(() => { 7 .then(() => {
8 return getServerAccount() 8 return getServerAccount()
9 }) 9 })