Skip to content

Commit 382656e

Browse files
committed
fix: add questionnaire respondent deviation check to refresh script
1 parent 523e845 commit 382656e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

scripts/init_db.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ CREATE DATABASE IF NOT EXISTS \`$DB_NAME\` /*!40100 DEFAULT CHARACTER SET utf8mb
3535
CREATE DATABASE IF NOT EXISTS \`OpalDB\` /*!40100 DEFAULT CHARACTER SET latin1 */;
3636
CREATE DATABASE IF NOT EXISTS \`QuestionnaireDB\` /*!40100 DEFAULT CHARACTER SET utf8 */;
3737
EOIF
38-
echo "Successfully created DB"
38+
echo "Successfully created DBs"
3939
echo "Granting privileges to DB user..."
4040
MYSQL_PWD=${DB_ROOT_PASSWORD} mariadb --protocol tcp --skip-ssl --user ${DB_ROOT_USER} --host ${DB_HOST} --port ${DB_PORT} <<'EOIF'
4141
GRANT ALL PRIVILEGES ON \`$DB_NAME\`.* TO '$DB_USER'@'%';

scripts/refresh_data.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,6 @@ docker compose run --rm db-management python -m db_management.run_sql_scripts Op
5050

5151
docker compose exec admin cat opal/core/management/commands/files/initialize_firebase_users.js | docker compose exec --no-TTY listener node
5252
docker compose exec admin python manage.py find_deviations
53+
docker compose exec admin python manage.py find_questionnaire_respondent_deviations
5354

5455
echo "Test data successfully reset."

0 commit comments

Comments
 (0)