Skip to content

Commit 05df8f1

Browse files
committed
Mongo | Remove mongo migration code
1 parent bb57299 commit 05df8f1

File tree

5 files changed

+0
-758
lines changed

5 files changed

+0
-758
lines changed

src/deploy/NVA_build/noobaa_init.sh

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -180,22 +180,12 @@ init_noobaa_agent() {
180180
run_internal_process node --unhandled-rejections=warn ./src/agent/agent_cli
181181
}
182182

183-
migrate_dbs() {
184-
fix_non_root_user
185-
186-
cd /root/node_modules/noobaa-core/
187-
/usr/local/bin/node --unhandled-rejections=warn src/upgrade/migration_to_postgres.js
188-
}
189-
190183
if [ "${RUN_INIT}" == "agent" ]
191184
then
192185
init_noobaa_agent
193186
elif [ "${RUN_INIT}" == "init_mongo" ]
194187
then
195188
prepare_mongo_pv
196-
elif [ "${RUN_INIT}" == "db_migrate" ]
197-
then
198-
migrate_dbs
199189
elif [ "${RUN_INIT}" == "init_endpoint" ]
200190
then
201191
init_endpoint

src/test/unit_tests/test_migration_to_postgres.js

Lines changed: 0 additions & 85 deletions
This file was deleted.

src/test/unit_tests/test_postgres_upgrade.js

Lines changed: 0 additions & 278 deletions
This file was deleted.

0 commit comments

Comments
 (0)