Skip to content

Mongo | Remove mongo migration code #9121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions src/deploy/NVA_build/noobaa_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -180,22 +180,12 @@ init_noobaa_agent() {
run_internal_process node --unhandled-rejections=warn ./src/agent/agent_cli
}

migrate_dbs() {
fix_non_root_user

cd /root/node_modules/noobaa-core/
/usr/local/bin/node --unhandled-rejections=warn src/upgrade/migration_to_postgres.js
}

if [ "${RUN_INIT}" == "agent" ]
then
init_noobaa_agent
elif [ "${RUN_INIT}" == "init_mongo" ]
then
prepare_mongo_pv
elif [ "${RUN_INIT}" == "db_migrate" ]
then
migrate_dbs
elif [ "${RUN_INIT}" == "init_endpoint" ]
then
init_endpoint
Expand Down
85 changes: 0 additions & 85 deletions src/test/unit_tests/test_migration_to_postgres.js

This file was deleted.

278 changes: 0 additions & 278 deletions src/test/unit_tests/test_postgres_upgrade.js

This file was deleted.

Loading