aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/danger/clean/cleaner.ts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/danger/clean/cleaner.ts')
-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)