test(aihr): cover evidence schema migrations
This commit is contained in:
@@ -20,6 +20,12 @@ cleanup() {
|
||||
trap cleanup EXIT
|
||||
|
||||
mysql -e "CREATE DATABASE \`$DB\` CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci;"
|
||||
|
||||
mysql "$DB" < "$ROOT_DIR/backend/script/sql/update/aihr_20260714_practice_evidence_mysql8.sql"
|
||||
mysql "$DB" < "$ROOT_DIR/backend/script/sql/update/aihr_20260714_practice_evidence_mysql8.sql"
|
||||
evidence_tables="$(mysql "$DB" -N -B -e "SELECT GROUP_CONCAT(table_name ORDER BY table_name) FROM information_schema.tables WHERE table_schema='$DB' AND table_name IN ('aihr_practice_audio','aihr_practice_calibration');")"
|
||||
test "$evidence_tables" = 'aihr_practice_audio,aihr_practice_calibration'
|
||||
|
||||
mysql "$DB" <<'SQL'
|
||||
CREATE TABLE aihr_sop_answer_review (
|
||||
id bigint NOT NULL AUTO_INCREMENT,
|
||||
|
||||
Reference in New Issue
Block a user