aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/ormconfig.ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-10-19 08:44:48 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-12-05 06:24:48 +0800
commit3a19faa5ff8a66395c5eb8d1400338cefaa21187 (patch)
treef35c9bbef19ebcef15e92f5f306040727d3b91a4 /packages/pipeline/src/ormconfig.ts
parentbbe1a843ef44e518fc957ea36325d5a730502de5 (diff)
downloaddexon-sol-tools-3a19faa5ff8a66395c5eb8d1400338cefaa21187.tar.gz
dexon-sol-tools-3a19faa5ff8a66395c5eb8d1400338cefaa21187.tar.zst
dexon-sol-tools-3a19faa5ff8a66395c5eb8d1400338cefaa21187.zip
Update script to work with existing v1 pipeline data
Diffstat (limited to 'packages/pipeline/src/ormconfig.ts')
-rw-r--r--packages/pipeline/src/ormconfig.ts15
1 files changed, 14 insertions, 1 deletions
diff --git a/packages/pipeline/src/ormconfig.ts b/packages/pipeline/src/ormconfig.ts
index 48e316078..eaafeb7d5 100644
--- a/packages/pipeline/src/ormconfig.ts
+++ b/packages/pipeline/src/ormconfig.ts
@@ -1,6 +1,6 @@
import { ConnectionOptions } from 'typeorm';
-export const config: ConnectionOptions = {
+export const testConfig: ConnectionOptions = {
type: 'sqlite',
database: 'database.sqlite',
synchronize: true,
@@ -12,3 +12,16 @@ export const config: ConnectionOptions = {
migrationsDir: 'lib/src/migrations',
},
};
+
+export const deployConfig: ConnectionOptions = {
+ type: 'postgres',
+ url: process.env.ZEROEX_DATA_PIPELINE_DB_URL,
+ synchronize: true,
+ logging: false,
+ entities: ['./lib/src/entities/**/*.js'],
+ migrations: ['./lib/src/migrations/**/*.js'],
+ cli: {
+ entitiesDir: 'lib/src/entities',
+ migrationsDir: 'lib/src/migrations',
+ },
+};