mitgliederverwaltung/priv/repo/migrations
Moritz ef94d2ef10 fix(repo): make member/user foreign keys deferrable to avoid create_member deadlock
Concurrent create_member transactions took FK FOR KEY SHARE (MultiXact) locks
on shared rows across members/users/membership_fee_types and could form a
cross-transaction cycle, producing intermittent PostgreSQL deadlocks (40P01)
under load. Making the three foreign keys DEFERRABLE INITIALLY DEFERRED moves
the check to commit time and breaks the cycle, without weakening integrity
(NOT NULL and ON DELETE RESTRICT are unaffected).
2026-06-16 17:52:51 +02:00
..
.formatter.exs Add generated starter app 2025-03-18 15:05:27 +01:00
20250421101957_initialize_extensions_1.exs Add ash framework 2025-04-21 12:37:55 +02:00
20250528163901_initial_migration.exs property value as Union type 2025-05-29 15:33:26 +02:00
20250617090641_member_fields.exs Member fields 2025-06-18 23:35:25 +02:00
20250617132424_member_delete.exs fix member deletion: property delete on cascade 2025-06-18 23:35:26 +02:00
20250620110849_add_accounts_domain_extensions.exs fix(citext): added missing citext extension migration 2025-07-02 17:03:37 +02:00
20250620110850_add_accounts_domain.exs migration: added account migration 2025-07-02 17:03:37 +02:00
20250912085235_AddSearchVectorToMembers.exs chore: adds tsvector to members 2025-09-17 13:34:14 +02:00
20250926164519_member_relation.exs add some comments 2025-10-16 15:28:30 +02:00
20250926180341_add_unique_email_to_members.exs add some comments 2025-10-16 15:28:30 +02:00
20251001141005_add_trigram_to_members.exs chore: added trigram migration for fuzzy search 2025-10-30 16:48:45 +01:00
20251016130855_add_constraints_for_user_member_and_property.exs add constraints for member-user and member-property 2025-10-16 15:28:31 +02:00
20251113163600_rename_properties_to_custom_fields_extensions_1.exs refactor: Rename Property/PropertyType to CustomFieldValue/CustomField 2025-11-13 18:04:53 +01:00
20251113163602_rename_properties_to_custom_fields.exs refactor: Rename Property/PropertyType to CustomFieldValue/CustomField 2025-11-13 18:04:53 +01:00
20251113180429_add_slug_to_custom_fields.exs feat: add custom field slug 2025-11-20 14:23:25 +01:00
20251113183538_change_custom_field_delete_cascade.exs feat: custom field deletion 2025-11-20 15:04:08 +01:00
20251119160509_add_show_in_overview_to_custom_fields.exs chore: add migration for show in overview flag 2025-12-01 08:50:06 +01:00
20251127134451_add_settings_table.exs chore: adds settings ressource and migration 2025-12-01 10:42:10 +01:00
20251201115939_add_member_field_visibility_to_settings.exs chore: adds migration for member field visibility 2025-12-02 14:16:02 +01:00
20251202145404_remove_birth_date_from_members.exs feat: remove birth_date field from Member resource 2025-12-02 14:58:50 +01:00
20251204123714_add_custom_field_values_to_search_vector.exs fix: simplify JSONB extraction - remove redundant operators 2025-12-11 13:49:05 +01:00
20251211151449_add_membership_fees_tables.exs fix(membership-fees): add DB constraints for enum and decimal precision 2025-12-11 18:46:48 +01:00
20251211172549_remove_immutable_from_custom_fields.exs chore: remove immutable from custom fields 2025-12-16 14:35:00 +01:00
20251211195058_add_membership_fee_settings.exs feat: implement automatic cycle generation for members 2025-12-16 16:40:11 +01:00
20251218113900_remove_paid_from_members.exs Remove paid field from members 2025-12-18 15:11:02 +01:00
20260102155350_remove_phone_number_and_make_fields_optional.exs fix: prevent migration rollback failure when NULL values exist 2026-01-07 09:52:40 +01:00
20260106161215_add_authorization_domain.exs refactor: squash migrations into single authorization domain migration 2026-01-06 18:37:39 +01:00
20260122231235_assign_mitglied_role_to_existing_users.exs fix: improve migration to create 'Mitglied' role if missing 2026-01-25 13:42:19 +01:00
20260125155125_add_not_null_constraint_to_users_role_id.exs Add NOT NULL constraint to users.role_id and optimize default_role_id 2026-01-25 17:04:48 +01:00
20260127124937_ensure_system_actor_user_exists.exs fix(migration): use INSERT..SELECT for system user role_id in CI 2026-01-27 17:47:05 +01:00
20260127141620_add_groups_and_member_groups.exs refactor: fix review issues - member_count aggregate, migration down, docs, actor handling 2026-01-27 17:09:07 +01:00
20260217120000_add_group_names_to_member_search_vector.exs fix: adress review comments 2026-02-18 13:05:31 +01:00
20260218185510_add_vereinfacht_contact_id_to_members.exs feat(vereinfacht): add DB schema, config and setting attributes 2026-02-23 19:51:31 +01:00
20260218185541_add_vereinfacht_settings.exs feat(vereinfacht): add DB schema, config and setting attributes 2026-02-23 19:51:31 +01:00
20260218190000_add_vereinfacht_app_url.exs Add Vereinfacht app URL setting and contact view URL 2026-02-23 19:54:43 +01:00
20260223120000_add_country_to_members.exs chore: adds country memberfield 2026-02-24 09:33:42 +01:00
20260223195453_add_member_field_required_to_settings.exs Setting: add member_field_required and update_single_member_field 2026-02-23 22:13:08 +01:00
20260224122831_add_oidc_to_settings.exs feat: OIDC configuration in global Settings (ENV or DB) 2026-02-24 13:58:24 +01:00
20260224180000_add_oidc_only_to_settings.exs Add migration: oidc_only boolean to settings table 2026-02-24 15:12:45 +01:00
20260309141437_add_join_requests.exs refactor: apply review changes to joinrequest 2026-03-09 15:36:19 +01:00
20260310114701_add_join_form_settings_to_settings.exs feat: add join form settings 2026-03-10 14:29:49 +01:00
20260311082352_add_smtp_to_settings.exs feat: add smtp settings 2026-03-12 13:39:48 +01:00
20260311140000_add_mail_from_to_settings.exs feat: add smtp settings 2026-03-12 13:39:48 +01:00
20260313120000_add_reviewed_by_display_to_join_requests.exs feat: prevent join requests with equal mail 2026-03-13 11:18:34 +01:00
20260313140000_add_registration_enabled_to_settings.exs feat: allow disabling registration 2026-03-13 16:40:39 +01:00
20260603000531_add_join_description_to_custom_fields.exs feat(custom-field): add join_description attribute for GDPR join-form labels 2026-06-03 12:01:41 +02:00
20260616165309_make_member_user_fks_deferrable.exs fix(repo): make member/user foreign keys deferrable to avoid create_member deadlock 2026-06-16 17:52:51 +02:00