Add migration

This commit is contained in:
Chocobozzz 2017-12-13 17:46:23 +01:00
parent 65b3ed25fc
commit 91fea9fc48
No known key found for this signature in database
GPG key ID: 583A612D890159BE
8 changed files with 71 additions and 19 deletions

View file

@ -1,9 +1,9 @@
import { getServerAccount } from '../server/helpers'
import { initDatabase } from '../server/initializers'
import { initDatabaseModels } from '../server/initializers'
import { AccountFollowModel } from '../server/models/account/account-follow'
import { VideoModel } from '../server/models/video/video'
initDatabase(true)
initDatabaseModels(true)
.then(() => {
return getServerAccount()
})