nordabiz/database/migrations/086_external_events.sql
Maciej Pienczyn 7a3955d0fa
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(calendar): add external events support for KIG/ARP integration
External events from partner organizations (ARP, KIG, etc.) can now
be added to the calendar with distinct visual treatment:
- Grey badge "ZEWNĘTRZNE" and muted date box in list view
- Grey color in grid view with border accent
- "Jestem zainteresowany" instead of "Zapisz się" (no commitment)
- Prominent "Przejdź do rejestracji" button linking to external organizer
- "Zainteresowani" section instead of "Uczestnicy"
- Toggle filter "Pokaż zewnętrzne" with localStorage persistence
- Admin form checkbox to mark events as external

New fields: is_external, external_url, external_source on NordaEvent.
Migration: 086_external_events.sql

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 10:23:10 +01:00

10 lines
452 B
SQL

-- Migration 086: Add external event fields to norda_events
-- For KIG integration: external events from ARP, KIG, partner organizations
ALTER TABLE norda_events ADD COLUMN IF NOT EXISTS is_external BOOLEAN DEFAULT FALSE;
ALTER TABLE norda_events ADD COLUMN IF NOT EXISTS external_url VARCHAR(1000);
ALTER TABLE norda_events ADD COLUMN IF NOT EXISTS external_source VARCHAR(255);
-- Grant permissions
GRANT ALL ON TABLE norda_events TO nordabiz_app;