Skip to content

Commit

Permalink
fixes orm migrations on start up (#150)
Browse files Browse the repository at this point in the history
* fixes orm migrations on start up

Signed-off-by: Matt Raffel <mattr@kiva.org>

* updates for production

Signed-off-by: Matt Raffel <mattr@kiva.org>

* reverts package.json to what is in master.

Signed-off-by: Matt Raffel <mattr@kiva.org>

* removes file

Signed-off-by: Matt Raffel <mattr@kiva.org>
  • Loading branch information
matt-raffel-kiva authored Jun 14, 2021
1 parent 25a1c77 commit 774020d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ormconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export function OrmConfig(): DynamicModule {
type: 'postgres',
synchronize: false,
migrationsRun: true,
entities: ['src/transactions/persistence/**/*.ts', 'transactions/persistence/**/*.js'],
migrations: ['dist/migration/**/*.js', 'migration/**/*.js'],
entities: ['src/transactions/persistence/**/*.ts', 'dist/transactions/persistence/**/*.js'],
migrations: ['src/migration/**/*.ts', 'dist/migration/**/*.js'],
host: process.env.WALLET_DB_HOST,
username: process.env.WALLET_DB_USER,
password: process.env.WALLET_DB_PASS,
Expand Down

0 comments on commit 774020d

Please sign in to comment.