aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/danger
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2017-12-12 17:53:50 +0100
committerChocobozzz <me@florianbigard.com>2017-12-13 16:50:33 +0100
commit3fd3ab2d34d512b160a5e6084d7609be7b4f4452 (patch)
treee5ca358287fca6ecacce83defcf23af1e8e9f419 /scripts/danger
parentc893d4514e6ecbf282c7985fe5f82b8acd8a1137 (diff)
downloadPeerTube-3fd3ab2d34d512b160a5e6084d7609be7b4f4452.tar.gz
PeerTube-3fd3ab2d34d512b160a5e6084d7609be7b4f4452.tar.zst
PeerTube-3fd3ab2d34d512b160a5e6084d7609be7b4f4452.zip
Move models to typescript-sequelize
Diffstat (limited to 'scripts/danger')
-rw-r--r--scripts/danger/clean/cleaner.ts10
1 files changed, 4 insertions, 6 deletions
diff --git a/scripts/danger/clean/cleaner.ts b/scripts/danger/clean/cleaner.ts
index 428333528..a22e2ed6a 100644
--- a/scripts/danger/clean/cleaner.ts
+++ b/scripts/danger/clean/cleaner.ts
@@ -1,12 +1,10 @@
1import * as rimraf from 'rimraf'
2import * as Promise from 'bluebird' 1import * as Promise from 'bluebird'
2import * as rimraf from 'rimraf'
3import { CONFIG, initDatabase, sequelizeTypescript } from '../../../server/initializers'
3 4
4import { CONFIG } from '../../../server/initializers/constants' 5initDatabase(true)
5import { database as db } from '../../../server/initializers/database'
6
7db.init(true)
8 .then(() => { 6 .then(() => {
9 return db.sequelize.drop() 7 return sequelizeTypescript.drop()
10 }) 8 })
11 .then(() => { 9 .then(() => {
12 console.info('Tables of %s deleted.', CONFIG.DATABASE.DBNAME) 10 console.info('Tables of %s deleted.', CONFIG.DATABASE.DBNAME)