File tree 5 files changed +65
-5
lines changed
5 files changed +65
-5
lines changed Original file line number Diff line number Diff line change 10
10
run-mysql-migration-tests :
11
11
strategy :
12
12
matrix :
13
- version : [2.21.0.0-b545, 2.18.7.0-b30, 2.20.3.0-b68 ]
13
+ version : [2.21.0.0-b545, 2.18.7.0-b30, 2.20.2.2-b1 ]
14
14
BETA_FAST_DATA_EXPORT : [0, 1]
15
15
env :
16
16
BETA_FAST_DATA_EXPORT : ${{ matrix.BETA_FAST_DATA_EXPORT }}
Original file line number Diff line number Diff line change 10
10
run-pg-migration-tests :
11
11
strategy :
12
12
matrix :
13
- version : [2.21.0.0-b545, 2.18.7.0-b30, 2.20.3.0-b68 ]
13
+ version : [2.21.0.0-b545, 2.18.7.0-b30, 2.20.2.2-b1 ]
14
14
BETA_FAST_DATA_EXPORT : [0, 1]
15
15
env :
16
16
BETA_FAST_DATA_EXPORT : ${{ matrix.BETA_FAST_DATA_EXPORT }}
Original file line number Diff line number Diff line change @@ -60,6 +60,22 @@ main() {
60
60
step " Check the Voyager version installed"
61
61
yb-voyager version
62
62
63
+ step " Assess Migration"
64
+ if [ " ${SOURCE_DB_TYPE} " = " postgresql" ]; then
65
+ assess_migration
66
+
67
+ step " Validate Assessment Reports"
68
+ # Checking if the assessment reports were created
69
+ if [ -f " ${EXPORT_DIR} /assessment/reports/assessmentReport.html" ] && [ -f " ${EXPORT_DIR} /assessment/reports/assessmentReport.json" ]; then
70
+ echo " Assessment reports created successfully."
71
+ # TODO: Further validation to be added
72
+ else
73
+ echo " Error: Assessment reports were not created successfully."
74
+ cat_log_file " yb-voyager-assess-migration.log"
75
+ exit 1
76
+ fi
77
+ fi
78
+
63
79
step " Export schema."
64
80
export_schema
65
81
find ${EXPORT_DIR} /schema -name ' *.sql' -printf " '%p'\n" | xargs grep -wh CREATE
@@ -80,7 +96,11 @@ main() {
80
96
81
97
step " Create target database."
82
98
run_ysql yugabyte " DROP DATABASE IF EXISTS ${TARGET_DB_NAME} ;"
83
- run_ysql yugabyte " CREATE DATABASE ${TARGET_DB_NAME} "
99
+ if [ " ${SOURCE_DB_TYPE} " = " postgresql" ]; then
100
+ run_ysql yugabyte " CREATE DATABASE ${TARGET_DB_NAME} with COLOCATION=TRUE"
101
+ else
102
+ run_ysql yugabyte " CREATE DATABASE ${TARGET_DB_NAME} "
103
+ fi
84
104
85
105
if [ -x " ${TEST_DIR} /add-pk-from-alter-to-create" ]
86
106
then
Original file line number Diff line number Diff line change @@ -68,6 +68,22 @@ main() {
68
68
step " Check the Voyager version installed"
69
69
yb-voyager version
70
70
71
+ step " Assess Migration"
72
+ if [ " ${SOURCE_DB_TYPE} " = " postgresql" ]; then
73
+ assess_migration
74
+
75
+ step " Validate Assessment Reports"
76
+ # Checking if the assessment reports were created
77
+ if [ -f " ${EXPORT_DIR} /assessment/reports/assessmentReport.html" ] && [ -f " ${EXPORT_DIR} /assessment/reports/assessmentReport.json" ]; then
78
+ echo " Assessment reports created successfully."
79
+ # TODO: Further validation to be added
80
+ else
81
+ echo " Error: Assessment reports were not created successfully."
82
+ cat_log_file " yb-voyager-assess-migration.log"
83
+ exit 1
84
+ fi
85
+ fi
86
+
71
87
step " Export schema."
72
88
export_schema
73
89
find ${EXPORT_DIR} /schema -name ' *.sql' -printf " '%p'\n" | xargs grep -wh CREATE
@@ -88,7 +104,11 @@ main() {
88
104
89
105
step " Create target database."
90
106
run_ysql yugabyte " DROP DATABASE IF EXISTS ${TARGET_DB_NAME} ;"
91
- run_ysql yugabyte " CREATE DATABASE ${TARGET_DB_NAME} "
107
+ if [ " ${SOURCE_DB_TYPE} " = " postgresql" ]; then
108
+ run_ysql yugabyte " CREATE DATABASE ${TARGET_DB_NAME} with COLOCATION=TRUE"
109
+ else
110
+ run_ysql yugabyte " CREATE DATABASE ${TARGET_DB_NAME} "
111
+ fi
92
112
93
113
if [ -x " ${TEST_DIR} /add-pk-from-alter-to-create" ]
94
114
then
Original file line number Diff line number Diff line change @@ -59,6 +59,22 @@ main() {
59
59
step " Check the Voyager version installed"
60
60
yb-voyager version
61
61
62
+ step " Assess Migration"
63
+ if [ " ${SOURCE_DB_TYPE} " = " postgresql" ]; then
64
+ assess_migration
65
+
66
+ step " Validate Assessment Reports"
67
+ # Checking if the assessment reports were created
68
+ if [ -f " ${EXPORT_DIR} /assessment/reports/assessmentReport.html" ] && [ -f " ${EXPORT_DIR} /assessment/reports/assessmentReport.json" ]; then
69
+ echo " Assessment reports created successfully."
70
+ # TODO: Further validation to be added
71
+ else
72
+ echo " Error: Assessment reports were not created successfully."
73
+ cat_log_file " yb-voyager-assess-migration.log"
74
+ exit 1
75
+ fi
76
+ fi
77
+
62
78
step " Export schema."
63
79
export_schema
64
80
find ${EXPORT_DIR} /schema -name ' *.sql' -printf " '%p'\n" | xargs grep -wh CREATE
@@ -79,7 +95,11 @@ main() {
79
95
80
96
step " Create target database."
81
97
run_ysql yugabyte " DROP DATABASE IF EXISTS ${TARGET_DB_NAME} ;"
82
- run_ysql yugabyte " CREATE DATABASE ${TARGET_DB_NAME} "
98
+ if [ " ${SOURCE_DB_TYPE} " = " postgresql" ]; then
99
+ run_ysql yugabyte " CREATE DATABASE ${TARGET_DB_NAME} with COLOCATION=TRUE"
100
+ else
101
+ run_ysql yugabyte " CREATE DATABASE ${TARGET_DB_NAME} "
102
+ fi
83
103
84
104
if [ -x " ${TEST_DIR} /add-pk-from-alter-to-create" ]
85
105
then
You can’t perform that action at this time.
0 commit comments