fix: update logging messages for database operations and version bump
- Changed logging output for PostgreSQL readiness, schema loading, and migration status to a consistent format using [OK], [FAIL], and [WARN]. - Updated application version to 0.8.14 and modified changelog to reflect recent changes, including a fix for co-trainer backfill logic in the database migration. - Enhanced error handling messages for better clarity during migration processes.
This commit is contained in:
1 parent
0c044249d9
commit
e69aca51f6
6 files changed
+51
-36
No files matched your search
@@ -49,8 +49,9 @@ ON CONFLICT (profile_id, club_id) DO NOTHING;
|
||||
INSERT INTO club_members (profile_id, club_id, status)
|
||||
SELECT DISTINCT elem::int, t.club_id, 'active'
|
||||
FROM training_groups t,
|
||||
LATERAL jsonb_array_elements_text(COALESCE(t.co_trainer_ids, '[]'::jsonb)) AS elem
|
||||
WHERE jsonb_array_length(COALESCE(t.co_trainer_ids, '[]'::jsonb)) > 0
|
||||
LATERAL jsonb_array_elements_text(t.co_trainer_ids) AS elem
|
||||
WHERE jsonb_typeof(t.co_trainer_ids) = 'array'
|
||||
AND jsonb_array_length(t.co_trainer_ids) > 0
|
||||
ON CONFLICT (profile_id, club_id) DO NOTHING;
|
||||
|
||||
INSERT INTO club_member_roles (club_member_id, role_code)
|
||||
|
||||
Reference in new issue
Block a user