Skip to content

Commit bbb0d6b

Browse files
committed
Add schema to umzug config as well
1 parent aa20437 commit bbb0d6b

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.circleci/config.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ install_deploysuite: &install_deploysuite
1515
cp ./../buildscript/master_deploy.sh .
1616
cp ./../buildscript/buildenv.sh .
1717
cp ./../buildscript/awsconfiguration.sh .
18+
restore_cache_settings_for_build: &restore_cache_settings_for_build
19+
key: docker-node-modules-v4-{{ checksum "package-lock.json" }}
20+
21+
save_cache_settings: &save_cache_settings
22+
key: docker-node-modules-v4-{{ checksum "package-lock.json" }}
23+
paths:
24+
- node_modules
1825

1926
# Instructions of deployment
2027
deploy_steps: &deploy_steps
@@ -24,6 +31,8 @@ deploy_steps: &deploy_steps
2431
- run: *install_awscli
2532
- run: *install_deploysuite
2633
- setup_remote_docker
34+
# Restoration of node_modules from cache.
35+
- restore_cache: *restore_cache_settings_for_build
2736
- run: docker build -t ${APPNAME}:latest .
2837
- deploy:
2938
name: "Running Masterscript - deploy tc-project-service "

migrations/umzug/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const { Umzug, SequelizeStorage } = require('umzug');
55
// Initialize Sequelize
66
const sequelize = new Sequelize(config.get('dbConfig.masterUrl'), {
77
dialect: 'postgres',
8+
schema: config.get('dbConfig.schema'),
89
});
910

1011
// Initialize Umzug

0 commit comments

Comments
 (0)