diff options
Diffstat (limited to 'scripts/danger/clean/cleaner.ts')
-rw-r--r-- | scripts/danger/clean/cleaner.ts | 10 |
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 @@ | |||
1 | import * as rimraf from 'rimraf' | ||
2 | import * as Promise from 'bluebird' | 1 | import * as Promise from 'bluebird' |
2 | import * as rimraf from 'rimraf' | ||
3 | import { CONFIG, initDatabase, sequelizeTypescript } from '../../../server/initializers' | ||
3 | 4 | ||
4 | import { CONFIG } from '../../../server/initializers/constants' | 5 | initDatabase(true) |
5 | import { database as db } from '../../../server/initializers/database' | ||
6 | |||
7 | db.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) |