sojorn/migrations/archive/show_all_urls.sql
Patrick Britton 0bb1dd4055 feat: organize SQL scripts into structured migration folders
- Create organized migration folder structure:
  - database/ - Core schema changes and migrations
  - tests/ - Test scripts and verification queries
  - directus/ - Directus CMS configuration scripts
  - fixes/ - Database fixes and patches
  - archive/ - Historical and deprecated scripts

- Move 60+ SQL files from root to appropriate folders
- Add comprehensive README with usage guidelines
- Consolidate old migrations_archive into new archive folder
- Maintain clear separation of concerns for different script types

Benefits:
- Cleaner project root directory
- Easier to find specific types of SQL scripts
- Better organization for maintenance and development
- Clear documentation for migration procedures
- Proper separation of production vs development scripts
2026-02-05 09:13:47 -06:00

11 lines
555 B
SQL

-- Show all current media URLs to verify they're correct
SELECT 'Post Images' as type, image_url as url FROM posts WHERE image_url IS NOT NULL
UNION ALL
SELECT 'Post Videos' as type, video_url as url FROM posts WHERE video_url IS NOT NULL
UNION ALL
SELECT 'Post Thumbnails' as type, thumbnail_url as url FROM posts WHERE thumbnail_url IS NOT NULL
UNION ALL
SELECT 'Profile Avatars' as type, avatar_url as url FROM profiles WHERE avatar_url IS NOT NULL
UNION ALL
SELECT 'Profile Covers' as type, cover_url as url FROM profiles WHERE cover_url IS NOT NULL;