cms.c2sgmbh/src/migrations
Martin Porwoll 913897c87c feat: add comprehensive video feature with collections, hooks, and tests
Video Feature Implementation:
- Add Videos and VideoCategories collections with multi-tenant support
- Extend VideoBlock with library/upload/embed sources and playback options
- Add featuredVideo group to Posts collection with processed embed URLs

Hooks & Validation:
- Add processFeaturedVideo hook for URL parsing and privacy mode embedding
- Add createSlugValidationHook for tenant-scoped slug uniqueness
- Add video-utils library (parseVideoUrl, generateEmbedUrl, formatDuration)

Testing:
- Add 84 unit tests for video-utils (URL parsing, duration, embed generation)
- Add 14 integration tests for Videos collection CRUD and slug validation

Database:
- Migration for videos, video_categories tables with locales
- Migration for Posts featuredVideo processed fields
- Update payload internal tables for new collections

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-16 10:48:33 +00:00
..
20251130_213501_initial_with_localization.json chore: update migrations for localization schema 2025-12-01 08:20:06 +00:00
20251130_213501_initial_with_localization.ts chore: update migrations for localization schema 2025-12-01 08:20:06 +00:00
20251202_081830_add_is_super_admin_to_users.json feat: add super admin role and update documentation 2025-12-05 14:26:08 +00:00
20251202_081830_add_is_super_admin_to_users.ts feat: add super admin role and update documentation 2025-12-05 14:26:08 +00:00
20251206_071552_portfolio_collections.json feat: add Portfolio and PortfolioCategories collections 2025-12-06 07:19:19 +00:00
20251206_071552_portfolio_collections.ts feat: add Portfolio and PortfolioCategories collections 2025-12-06 07:19:19 +00:00
20251206_134750_tenant_email_config.json feat: implement multi-tenant email system with logging 2025-12-07 20:16:54 +00:00
20251206_134750_tenant_email_config.ts feat: implement multi-tenant email system with logging 2025-12-07 20:16:54 +00:00
20251206_141403_email_logs_collection.json feat: implement multi-tenant email system with logging 2025-12-07 20:16:54 +00:00
20251206_141403_email_logs_collection.ts feat: implement multi-tenant email system with logging 2025-12-07 20:16:54 +00:00
20251207_205727_audit_logs_collection.json feat: implement monitoring & alerting system 2025-12-07 20:58:20 +00:00
20251207_205727_audit_logs_collection.ts feat: implement monitoring & alerting system 2025-12-07 20:58:20 +00:00
20251210_052757_add_faqs_collection.json feat: add FAQ collection and block 2025-12-10 05:34:41 +00:00
20251210_052757_add_faqs_collection.ts feat: add FAQ collection and block 2025-12-10 05:34:41 +00:00
20251210_071506_add_team_collection.json feat: add Team collection and block 2025-12-10 07:15:59 +00:00
20251210_071506_add_team_collection.ts feat: add Team collection and block 2025-12-10 07:15:59 +00:00
20251210_073811_add_services_collections.json feat: add Services collection and block 2025-12-10 07:39:03 +00:00
20251210_073811_add_services_collections.ts feat: add Services collection and block 2025-12-10 07:39:03 +00:00
20251210_090000_enhance_form_submissions.ts feat: enhance FormSubmissions with workflow and tracking 2025-12-10 09:13:06 +00:00
20251212_211506_add_products_collections.json feat: add Products and ProductCategories collections with CI/CD pipeline 2025-12-12 21:36:26 +00:00
20251212_211506_add_products_collections.ts feat: add Products and ProductCategories collections with CI/CD pipeline 2025-12-12 21:36:26 +00:00
20251213_100753_add_timelines_collection.json feat: add Timeline Collection for complex chronological events 2025-12-13 10:22:56 +00:00
20251213_100753_add_timelines_collection.ts feat: add Timeline Collection for complex chronological events 2025-12-13 10:22:56 +00:00
20251213_104523_add_workflows_and_timeline_process_fields.json feat: add Workflows Collection for complex process management 2025-12-13 10:47:56 +00:00
20251213_104523_add_workflows_and_timeline_process_fields.ts feat: add Workflows Collection for complex process management 2025-12-13 10:47:56 +00:00
20251213_145438_hero_slider_block.json feat: add HeroSliderBlock for multi-slide hero sections 2025-12-13 14:57:13 +00:00
20251213_145438_hero_slider_block.ts feat: add HeroSliderBlock for multi-slide hero sections 2025-12-13 14:57:13 +00:00
20251213_160000_testimonials_slider_v2.ts feat: enhance TestimonialsBlock with advanced slider options 2025-12-13 20:37:35 +00:00
20251213_210000_image_slider_block.ts feat: add ImageSliderBlock for image galleries and sliders 2025-12-13 20:58:32 +00:00
20251213_220000_blogging_collections.ts feat: add comprehensive blogging and team features 2025-12-13 21:49:13 +00:00
20251213_230000_team_extensions.ts feat: add comprehensive blogging and team features 2025-12-13 21:49:13 +00:00
20251214_000000_add_priority_collections.ts feat: add priority collections and advanced content blocks 2025-12-14 00:58:30 +00:00
20251214_010000_tenant_specific_collections.ts feat: add tenant-specific collections and BeforeAfterBlock 2025-12-14 01:40:17 +00:00
20251216_073000_add_video_collections.ts feat: add comprehensive video feature with collections, hooks, and tests 2025-12-16 10:48:33 +00:00
20251216_080000_posts_featured_video_processed_fields.ts feat: add comprehensive video feature with collections, hooks, and tests 2025-12-16 10:48:33 +00:00
index.ts feat: add comprehensive video feature with collections, hooks, and tests 2025-12-16 10:48:33 +00:00