sojorn/go-backend/internal/database/migrations
Patrick Britton 4eebd27e69 feat: implement Cloudflare Turnstile, terms acceptance, and email preferences
- Add Cloudflare Turnstile verification to registration flow
- Require terms of service and privacy policy acceptance
- Add email newsletter and contact preference options
- Update User model with email preference fields
- Create database migration for email preferences
- Add Turnstile service with Cloudflare API integration
- Update registration request structure with new required fields
- Add Turnstile secret key configuration
- Include development bypass for testing

Registration now requires:
- Turnstile token verification
- Terms of service acceptance
- Privacy policy acceptance
- Optional email newsletter/contact preferences
2026-02-05 08:59:05 -06:00
..
000001_initial_schema.down.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
000001_initial_schema.up.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
000002_e2ee_chat.down.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
000002_e2ee_chat.up.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
000003_e2ee_backup_recovery.up.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
000003_session_persistence.down.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
000003_session_persistence.up.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
000010_notification_preferences.down.sql Update terminology, fix search feed, and deploy updates 2026-02-03 21:44:08 -06:00
000010_notification_preferences.up.sql Update terminology, fix search feed, and deploy updates 2026-02-03 21:44:08 -06:00
000011_tagging_system.down.sql Update terminology, fix search feed, and deploy updates 2026-02-03 21:44:08 -06:00
000011_tagging_system.up.sql Update terminology, fix search feed, and deploy updates 2026-02-03 21:44:08 -06:00
000012_privacy_settings.up.sql Update terminology, fix search feed, and deploy updates 2026-02-03 21:44:08 -06:00
000013_privacy_refinement.up.sql Update terminology, fix search feed, and deploy updates 2026-02-03 21:44:08 -06:00
000014_structural_moderation.up.sql Update terminology, fix search feed, and deploy updates 2026-02-03 21:44:08 -06:00
20260126000001_add_official_accounts.down.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260126000001_add_official_accounts.up.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260126000002_auth_revamp_v2.down.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260126000002_auth_revamp_v2.up.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260126000003_create_user_category_settings.down.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260126000003_create_user_category_settings.up.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260126000004_create_users_table.down.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260126000004_create_users_table.up.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260126000005_fix_posts_schema.down.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260126000005_fix_posts_schema.up.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260126000006_profile_onboarding.down.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260126000006_profile_onboarding.up.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260126000007_auth_security.down.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260126000007_auth_security.up.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260126000008_fix_media_urls.down.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260126000008_fix_media_urls.up.sql feat: notification system refinements and api route fixes 2026-02-04 10:51:01 -06:00
20260127000001_add_status_and_privacy.down.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260127000001_add_status_and_privacy.up.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260127000002_optimize_e2ee_schema.up.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260128000001_add_message_header.down.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260128000001_add_message_header.up.sql Initial commit: Complete threaded conversation system with inline replies 2026-01-30 07:40:19 -06:00
20260131000001_add_post_reactions.down.sql Fix UUID casting issues in post, notification, and category repositories 2026-01-31 13:55:59 -06:00
20260131000001_add_post_reactions.up.sql Fix UUID casting issues in post, notification, and category repositories 2026-01-31 13:55:59 -06:00
20260204000001_search_optimization.up.sql feat: notification system refinements and api route fixes 2026-02-04 10:51:01 -06:00
20260204000002_circle_privacy.down.sql Implement social graph, circle privacy, and data export system 2026-02-04 16:19:05 -06:00
20260204000002_circle_privacy.up.sql Implement social graph, circle privacy, and data export system 2026-02-04 16:19:05 -06:00
20260204000003_migrate_to_sojorn_net.down.sql feat: notify archive instead of delete, fix api domain failsafe 2026-02-04 19:38:02 -06:00
20260204000003_migrate_to_sojorn_net.up.sql feat: notify archive instead of delete, fix api domain failsafe 2026-02-04 19:38:02 -06:00
20260205000002_user_appeal_system.up.sql feat: implement comprehensive user appeal system 2026-02-05 07:55:45 -06:00
20260205000002_user_appeal_system_fixed.up.sql feat: implement nuanced violation system with content deletion 2026-02-05 07:59:35 -06:00
20260205000003_add_email_preferences.up.sql feat: implement Cloudflare Turnstile, terms acceptance, and email preferences 2026-02-05 08:59:05 -06:00