Refactor code structure for improved readability and maintainability

This commit is contained in:
Ace
2026-06-23 14:25:39 +02:00
10 changed files with 630 additions and 224 deletions
@@ -0,0 +1,4 @@
ALTER TABLE notifications ADD COLUMN IF NOT EXISTS context_id UUID;
ALTER TABLE notifications ADD COLUMN IF NOT EXISTS context_type VARCHAR(50);
CREATE INDEX IF NOT EXISTS idx_notifications_context ON notifications(context_type, context_id) WHERE context_type IS NOT NULL;
-3
View File
@@ -34,8 +34,5 @@ BEGIN;
\echo '=== Running 009_settings.sql (Company Settings + User Preferences) ==='
\i 009_settings.sql
\echo '=== Running 010_facebook_accounts.sql (Facebook Account Tracking) ==='
\i 010_facebook_accounts.sql
\echo '=== Migration Complete ==='
COMMIT;