Skip to content

Commit

Permalink
Removing engine option.
Browse files Browse the repository at this point in the history
Signed-off-by: sreepuramsudheer <[email protected]>
  • Loading branch information
sreepuramsudheer committed Jan 3, 2025
1 parent 7112bdc commit 1964ff9
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
converge_by "Deploying schema from #{new_resource.name}" do
execute "sqitch_deploy_#{new_resource.name}" do
command <<-EOM.gsub(/\s+/, ' ').strip!
sqitch --engine pg
--db-name #{new_resource.database}
sqitch --db-name #{new_resource.database}
--db-host #{new_resource.hostname}
--db-port #{new_resource.port}
--db-user #{new_resource.username}
Expand Down
3 changes: 1 addition & 2 deletions omnibus/partybus/lib/partybus/migration_api/v1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ def run_command(command, options={})
def run_sqitch(target, service, opts = {})
options = default_opts_for_service(service).merge(opts)
command = <<-EOM.gsub(/\s+/," ").strip!
sqitch --engine pg
--db-name #{options[:database]}
sqitch --db-name #{options[:database]}
--db-host #{Partybus.config.postgres['vip']}
--db-port #{Partybus.config.postgres['port']}
--db-user #{options[:username]}
Expand Down
2 changes: 1 addition & 1 deletion src/bookshelf/habitat/config/database-migrations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ createdb $PG_ARGS $DB "bookshelf"
psql $PG_ARGS --command 'CREATE EXTENSION IF NOT EXISTS "uuid-ossp"' $DB

cd "{{pkg.path}}/schema" || exit
sqitch --quiet --engine pg deploy "db:pg://${USER}:${PASS}@${HOST}/$DB"
sqitch --quiet deploy "db:pg://${USER}:${PASS}@${HOST}/$DB"
2 changes: 1 addition & 1 deletion src/oc_bifrost/habitat/config/database-migrations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ createdb $PG_ARGS $DB "oc_bifrost"
psql $PG_ARGS --command 'CREATE EXTENSION IF NOT EXISTS "uuid-ossp"' $DB

cd "{{pkg.path}}/schema" || exit
sqitch --quiet --engine pg deploy "db:pg://${USER}:${PASS}@${HOST}/$DB"
sqitch --quiet deploy "db:pg://${USER}:${PASS}@${HOST}/$DB"
2 changes: 1 addition & 1 deletion src/oc_bifrost/schema/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ setup:
@createdb $(TEST_DB)
@psql --dbname $(TEST_DB) --command 'CREATE EXTENSION pgtap;'
@psql --dbname $(TEST_DB) --single-transaction --set ON_ERROR_STOP=1 --file t/custom_test_functions.sql
@sqitch --engine pg --db-name $(TEST_DB) deploy
@sqitch --db-name $(TEST_DB) deploy
@psql --dbname $(TEST_DB) --single-transaction --set ON_ERROR_STOP=1 --file sql/create_roles.sql
@psql --dbname $(TEST_DB) --single-transaction --set ON_ERROR_STOP=1 --set database_name=$(TEST_DB) --file sql/permissions.sql

Expand Down
4 changes: 2 additions & 2 deletions src/oc_erchef/habitat/config/database-migrations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ createdb $PG_ARGS $DB "oc_bifrost"
psql $PG_ARGS --command 'CREATE EXTENSION IF NOT EXISTS "uuid-ossp"' $DB

cd "{{pkg.path}}/schema/baseline"
sqitch --quiet --engine pg deploy "db:pg://${USER}:${PASS}@${HOST}/$DB"
sqitch --quiet deploy "db:pg://${USER}:${PASS}@${HOST}/$DB"

cd "{{pkg.path}}/schema"
sqitch --quiet --engine pg deploy "db:pg://${USER}:${PASS}@${HOST}/$DB"
sqitch --quiet deploy "db:pg://${USER}:${PASS}@${HOST}/$DB"
2 changes: 1 addition & 1 deletion src/oc_erchef/schema/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ all : setup_schema setup_tests test
setup_schema:
$(MAKE) -C baseline setup_schema
@echo "Deploying Enterprise Chef Server Schema on top..."
@sqitch --engine pg --db-name $(TEST_DB) deploy --verify
@sqitch --db-name $(TEST_DB) deploy --verify

# Load up all testing functions. pgTAP libraries and open source
# schema test functions are loaded by the open source makefile target
Expand Down
2 changes: 1 addition & 1 deletion src/oc_erchef/schema/baseline/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ setup_schema:
@echo "Dropping and recreating database '$(TEST_DB)'"
@psql --dbname template1 --command 'DROP DATABASE IF EXISTS $(TEST_DB)'
@createdb $(TEST_DB)
@sqitch --engine pg --db-name $(TEST_DB) deploy
@sqitch --db-name $(TEST_DB) deploy

setup_tests:
@psql --dbname $(TEST_DB) --command 'CREATE EXTENSION pgtap;'
Expand Down

0 comments on commit 1964ff9

Please sign in to comment.