diff options
author | Chocobozzz <me@florianbigard.com> | 2017-12-12 17:53:50 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2017-12-13 16:50:33 +0100 |
commit | 3fd3ab2d34d512b160a5e6084d7609be7b4f4452 (patch) | |
tree | e5ca358287fca6ecacce83defcf23af1e8e9f419 /scripts/danger | |
parent | c893d4514e6ecbf282c7985fe5f82b8acd8a1137 (diff) | |
download | PeerTube-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.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) |