aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/database.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 /server/initializers/database.ts
parent65b3ed25fc33c63ab2c56372c1a010541f8fddc2 (diff)
downloadPeerTube-91fea9fc48a4ce53dd69e0e20f5804ad95a6c27d.tar.gz
PeerTube-91fea9fc48a4ce53dd69e0e20f5804ad95a6c27d.tar.zst
PeerTube-91fea9fc48a4ce53dd69e0e20f5804ad95a6c27d.zip
Add migration
Diffstat (limited to 'server/initializers/database.ts')
-rw-r--r--server/initializers/database.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/initializers/database.ts b/server/initializers/database.ts
index f9e24c6b8..2260938b1 100644
--- a/server/initializers/database.ts
+++ b/server/initializers/database.ts
@@ -50,7 +50,7 @@ const sequelizeTypescript = new SequelizeTypescript({
50 } 50 }
51}) 51})
52 52
53async function initDatabase (silent: boolean) { 53async function initDatabaseModels (silent: boolean) {
54 sequelizeTypescript.addModels([ 54 sequelizeTypescript.addModels([
55 ApplicationModel, 55 ApplicationModel,
56 AvatarModel, 56 AvatarModel,
@@ -81,6 +81,6 @@ async function initDatabase (silent: boolean) {
81// --------------------------------------------------------------------------- 81// ---------------------------------------------------------------------------
82 82
83export { 83export {
84 initDatabase, 84 initDatabaseModels,
85 sequelizeTypescript 85 sequelizeTypescript
86} 86}