Skip to content

Commit 608a3bb

Browse files
main script to transfer results one by one
1 parent 7c6fb13 commit 608a3bb

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
3+
filename='project_ids.txt'
4+
5+
while read project_id;
6+
do
7+
8+
echo "project_id: $project_id"
9+
echo "Generate copy_to_csv.sql"
10+
python3 generate_copy_to_csv.py $project_id
11+
12+
echo "Run copy_to_csv.sql using copy_restuls_to_csv.sh (Get all results of this projects from old production database)"
13+
./copy_results_to_csv.sh
14+
15+
echo "Run copy_from_csv.sh to insert all results of this project into new production database"
16+
./copy_from_csv.sh
17+
18+
done < $filename

0 commit comments

Comments
 (0)