nordabiz/database/migrations
Maciej Pienczyn 652fb62fce
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
feat: paid events — payment tracking for event attendees and guests
Add is_paid, price_member, price_guest to NordaEvent. Add payment_status,
payment_amount, payment_confirmed_by/at to EventAttendee and EventGuest.
Auto-assign amounts on RSVP. Admin panel at /admin/kalendarz/<id>/platnosci
for OFFICE_MANAGER to confirm payments. User sees payment status on event page.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-08 10:57:07 +02:00
..
002_digital_maturity_foundation.sql Initial commit 2026-01-01 14:01:49 +01:00
003_membership_fees.sql Add company logos, migration and docs 2026-01-06 22:31:17 +01:00
004_seo_metrics.sql auto-claude: 1.2 - Create database/migrations/004_seo_metrics.sql 2026-01-08 01:54:32 +01:00
005_zopk_knowledge_base.sql feat: Add 1-5 star rating to ZOPK news AI evaluation 2026-01-11 07:34:36 +01:00
006_ai_usage_tracking.sql feat: Add AI usage tracking migration 2026-01-11 08:17:06 +01:00
011_company_people.sql feat: Add PKD codes and CEIDG owner data to company profiles 2026-01-13 16:07:03 +01:00
012_add_read_tracking_tables.sql feat: Add read tracking for Forum topics/replies and B2B classifieds 2026-01-31 20:50:27 +01:00
012_pkd_integration.sql feat: Add PKD codes and CEIDG owner data to company profiles 2026-01-13 16:07:03 +01:00
013_krs_audit.sql feat: Add KRS Audit panel with full PDF parsing 2026-01-13 16:46:54 +01:00
014_user_analytics.sql feat: Add user analytics panel (/admin/analytics) 2026-01-13 19:40:37 +01:00
015_zopk_full_content.sql feat(zopk): Knowledge Base + NordaGPT integration (FAZY 0-3) 2026-01-16 20:15:30 +01:00
016_zopk_milestones.sql feat(zopk): Rozbudowa bazy wiedzy ZOPK 2026-01-17 10:57:11 +01:00
018_announcements.sql feat(announcements): System ogłoszeń i aktualności dla członków 2026-01-26 22:10:54 +01:00
019_announcement_reads.sql feat(announcements): Śledzenie odczytów ogłoszeń (seen by) 2026-01-27 08:19:39 +01:00
020_external_contacts.sql fix(contacts): Zmiana FTS 'polish' na 'simple' dla kompatybilności 2026-01-27 08:35:46 +01:00
024_add_benefits_tables.sql feat: Add member benefits module with WisprFlow affiliate 2026-02-02 22:26:44 +01:00
024_forum_modernization.sql feat: Add forum modernization with reactions, subscriptions, and moderation 2026-01-31 18:55:40 +01:00
028_add_user_privacy_settings.sql feat(privacy): Ustawienia prywatności użytkownika 2026-01-28 20:35:50 +01:00
029_add_categories_array.sql feat(announcements): Obsługa wielu kategorii dla aktualności 2026-01-29 15:14:15 +01:00
029_add_user_blocks.sql feat(blocks): System blokowania użytkowników 2026-01-28 20:44:38 +01:00
030_add_category_hierarchy.sql feat(categories): Hierarchiczna struktura kategorii 2026-01-28 20:51:15 +01:00
031_add_contact_preferences.sql feat(privacy): Dodanie preferencji kanałów kontaktu 2026-01-28 21:06:15 +01:00
032_add_norda_knowledge_chunks.sql feat(insights): Baza wiedzy i insights dla rozwoju portalu 2026-01-28 22:09:05 +01:00
033_analytics_expansion.sql feat: Rozbudowa systemu analityki użytkowników 2026-01-30 15:52:18 +01:00
034_classified_interactions.sql feat: Add B2B classifieds interactions (interest, Q&A, context messages) 2026-01-31 21:15:30 +01:00
035_add_role_system.sql feat: Add hierarchical role system with delegated permissions 2026-02-01 06:42:39 +01:00
036_ceidg_extended_data.sql fix: Rename pkd_codes column to ceidg_pkd_list to avoid backref conflict 2026-02-01 07:22:32 +01:00
037_krs_extended_data.sql feat: Display ALL KRS data in company profile 2026-02-01 07:44:33 +01:00
041_ai_enrichment_proposals.sql feat: Add AI enrichment approval workflow 2026-02-01 11:03:53 +01:00
042_membership_applications.sql feat: Add membership application system 2026-02-01 12:38:31 +01:00
043_membership_proposed_changes.sql feat: Add user approval workflow for registry data changes 2026-02-01 14:56:16 +01:00
044_fix_status_column_length.sql fix: Increase status column length to VARCHAR(30) 2026-02-01 15:53:57 +01:00
045_status_column_50_chars.sql chore: Increase status column to VARCHAR(50) for flexibility 2026-02-01 15:55:57 +01:00
046_workflow_history.sql feat: Add workflow history tracking for membership applications 2026-02-01 16:59:11 +01:00
047_event_access_control.sql feat: Add event access control for Rada Izby meetings 2026-02-03 12:41:42 +01:00
048_board_documents.sql feat: Add Strefa RADA - closed section for Board Council members 2026-02-03 18:41:12 +01:00
049_board_meetings.sql feat: Add meeting agenda/protocol form system for Board Council 2026-02-03 20:10:50 +01:00
050_user_companies.sql feat(multi-company): Allow users to be associated with multiple companies 2026-02-06 19:13:10 +01:00
051_social_media_enhanced.sql chore(db): Add migration files 051-055 for enhanced audits 2026-02-07 11:58:24 +01:00
052_gbp_audit_enhanced.sql chore(db): Add migration files 051-055 for enhanced audits 2026-02-07 11:58:24 +01:00
053_seo_audit_enhanced.sql chore(db): Add migration files 051-055 for enhanced audits 2026-02-07 11:58:24 +01:00
054_competitor_monitoring.sql chore(db): Add migration files 051-055 for enhanced audits 2026-02-07 11:58:24 +01:00
055_unified_reports.sql chore(db): Add migration files 051-055 for enhanced audits 2026-02-07 11:58:24 +01:00
056_audit_actions.sql feat(audit): Add AI-powered audit analysis and action generation 2026-02-07 12:41:26 +01:00
057_audit_cache_previous.sql feat(audit): Add previous vs current AI analysis comparison 2026-02-07 18:05:17 +01:00
058_oauth_tokens.sql feat(oauth): Phase 3 foundation - OAuth 2.0 framework for external APIs 2026-02-08 11:46:42 +01:00
059_seo_extended_metrics.sql feat(seo): Display all collected SEO data in audit dashboard 2026-02-08 12:53:07 +01:00
060_rename_fid_to_inp.sql refactor(seo): Rename FID to INP across entire codebase 2026-02-08 12:58:41 +01:00
061_places_api_columns.sql feat(gbp): Add Places API columns to persist enrichment data 2026-02-08 14:05:23 +01:00
062_google_maps_links.sql feat(gbp): Add review link, directions, open status, and NAP comparison 2026-02-08 15:04:49 +01:00
063_add_is_pwa_to_user_sessions.sql feat(analytics): PWA detection via cookie + expanded bot filter 2026-03-18 09:10:46 +01:00
063_add_notify_email_messages.sql feat: email notification when receiving private message with opt-out toggle 2026-02-23 09:13:57 +01:00
063_company_logo_dark_bg.sql feat: add logo background toggle (dark/light) for companies 2026-02-20 19:32:22 +01:00
063_fix_website_urls_prefix.sql fix: remove updated_at from migration (column doesn't exist) 2026-02-21 19:23:01 +01:00
063_gsc_columns.sql feat(seo): Display Google Search Console data on SEO audit dashboard 2026-02-08 18:38:17 +01:00
063_paid_events.sql feat: paid events — payment tracking for event attendees and guests 2026-04-08 10:57:07 +02:00
064_fix_company_websites_url_prefix.sql fix: add https:// to company_websites URLs and ensure_url in contact bar 2026-02-21 19:38:39 +01:00
064_google_api_expansion.sql feat(api): Expand Google API coverage to ~100% (GBP Performance + GSC extensions) 2026-02-09 12:05:08 +01:00
065_sync_user_companies.sql fix: sync user↔company in user_companies + fix calendar field names 2026-02-12 16:06:49 +01:00
066_event_image_url.sql feat(calendar): Add image support for events 2026-02-13 11:28:40 +01:00
067_company_websites.sql feat: Support multiple websites per company (max 5) 2026-02-17 07:45:22 +01:00
067b_fix_combined_urls.sql fix: Split combined URLs in company_websites, use relationship in banner 2026-02-17 07:52:39 +01:00
067c_website_type.sql feat: Add website_type with color-coded buttons and tooltips 2026-02-17 07:59:44 +01:00
068_link_analysis_to_websites.sql feat: Per-website audit cards in company profile 2026-02-17 09:02:01 +01:00
069_company_hidden_sections.sql feat: Add section visibility toggle for company profiles 2026-02-17 09:59:32 +01:00
070_social_publisher.sql feat: Add Social Media Publisher module (MVP) 2026-02-18 12:08:29 +01:00
070_user_avatar.sql feat: user avatar upload with crop, resize, and EXIF strip 2026-03-12 10:18:29 +01:00
071_remove_brave_search_social_media.sql fix: Remove Brave Search from social media audit — too many false positives 2026-02-18 18:20:52 +01:00
071_social_config_posts_cache.sql feat: persist Facebook posts in DB for instant page load 2026-02-20 08:35:25 +01:00
072_company_admin_notes.sql feat: add admin_notes field to companies for internal admin notes 2026-02-18 19:47:59 +01:00
072_social_post_is_live.sql feat: add toggle visibility for published Facebook posts (debug ↔ live) 2026-02-19 10:36:14 +01:00
073_social_config_per_company.sql feat: add per-company Facebook configuration to Social Publisher 2026-02-19 08:15:36 +01:00
074_board_document_meeting_fk.sql feat: activate board document upload/download with meeting 2/2026 import 2026-02-20 12:04:44 +01:00
075_bulk_enrichment_jobs.sql feat: add data quality dashboard, auto-scoring, bulk enrichment and GBP data flow 2026-02-21 07:02:45 +01:00
076_website_discovery_candidates.sql feat: add website discovery service for companies without websites 2026-02-21 08:27:13 +01:00
077_portal_seo_audits.sql feat: portal self-audit SEO dashboard with history tracking 2026-02-21 15:15:33 +01:00
078_user_insights_indexes.sql feat: add User Insights dashboard with 5 tabs and user profiles 2026-02-21 21:42:43 +01:00
079_bot_filtering.sql fix: filter bots from analytics, use audit_logs for failed logins, logarithmic engagement score 2026-02-22 08:14:50 +01:00
080_insights_perf_indexes.sql fix: eliminate N+1 queries in User Insights, add bot filtering to profile, UX improvements 2026-02-22 08:30:47 +01:00
081_message_attachments.sql feat(messages): add message_attachments migration 2026-03-11 17:35:02 +01:00
082_uptime_monitoring.sql feat: add uptime monitoring dashboard with UptimeRobot integration 2026-03-15 07:53:05 +01:00
083_zopk_cleanup.sql fix: ZOPK knowledge base image display and data quality issues 2026-03-15 08:57:41 +01:00
084_chat_pin_rename.sql feat(chat): add conversation pinning and renaming 2026-03-16 22:24:17 +01:00
085_event_attachments.sql feat(calendar): add dynamic organizer to event ICS exports 2026-03-18 17:29:37 +01:00
086_external_events.sql feat(calendar): add external events support for KIG/ARP integration 2026-03-19 10:23:10 +01:00
087_financial_report_fields.sql claude-mem plugin v10.6.2 2026-03-23 08:13:52 +01:00
088_message_groups.sql feat(messages): group messaging and search 2026-03-20 11:11:57 +01:00
088_previous_years_debt.sql feat(fees): kolumna zaległości z lat poprzednich z edycją inline 2026-03-20 15:11:34 +01:00
089_chamber_role.sql feat(izba): chamber roles — badges on profiles + Władze Izby page 2026-03-20 13:59:04 +01:00
090_update_lord_company.sql fix(migration): 090 use last_updated instead of updated_at for companies table 2026-03-31 08:55:47 +02:00
091_messaging_redesign.sql feat(messages): add unified conversation models and migration SQL 2026-03-27 12:56:35 +01:00
092_ai_user_memory.sql feat(nordagpt): add memory tables and ORM models 2026-03-28 05:44:30 +01:00
093_ai_conversation_summary.sql feat(nordagpt): add memory tables and ORM models 2026-03-28 05:44:30 +01:00
094_membership_status_fields.sql feat(membership): add membership_status, resignation_date, fee_included_in_parent 2026-03-31 11:11:56 +02:00
095_fix_subsidiaries_and_new_companies.sql feat(membership): fix Pelmar parent (TTM not P&P), add missing companies and subsidiaries 2026-03-31 11:41:18 +02:00
096_event_guests.sql feat(calendar): add event_guests migration 096 2026-03-31 13:58:27 +02:00
097_add_created_by_id.sql feat(users): track who created each account (created_by_id) 2026-04-06 12:48:48 +02:00
098_add_admitted_at_meeting_id.sql feat(homepage): redesign events section with 2-column grid, forum topic and new members 2026-04-06 13:50:56 +02:00
099_add_admission_workflow_log.sql feat: Post-Rada Workflow Engine + redesign /nowi-czlonkowie 2026-04-06 23:51:38 +02:00
20260201_sync_user_roles.sql refactor: Migrate access control from is_admin to role-based system 2026-02-01 21:05:22 +01:00
add_gbp_audit.sql auto-claude: subtask-2-3 - Create database migration script for GBP audit tab 2026-01-08 19:08:05 +01:00
add_gbp_hours_photos_columns.sql auto-claude: subtask-4-1 - Create SQL migration script for new columns 2026-01-08 23:04:25 +01:00
add_google_gbp_fields.sql feat: Add PKD codes and CEIDG owner data to company profiles 2026-01-13 16:07:03 +01:00
add_user_engagement_metrics.sql feat: add user engagement tracking (login_count, last_active_at, page_views_count) 2026-03-13 19:08:45 +01:00
add_wizard_columns.sql feat(admin): add company creation wizard — 5-step guided flow for office managers 2026-04-03 11:57:51 +02:00
CLAUDE.md claude-mem plugin v10.3.3 2026-02-23 10:33:26 +01:00
it_audit_migration.sql auto-claude: subtask-1-4 - Run migration for IT audit tables in DEV database 2026-01-09 08:23:40 +01:00