Database Schema Migration

Add missing columns to the downloadable_documents table for document storage functionality.

Run Schema Migration

This will check if the following columns exist in downloadable_documents:

  • file_path - Path to stored file in Supabase storage
  • stored_url - Public URL to stored document
  • stored_at - Timestamp when document was stored
  • reviewed_at - Timestamp when document was reviewed

Important Notes

• This migration is safe and uses “IF NOT EXISTS” to avoid conflicts

• Existing data will not be affected

• You only need to run this once

• After migration, document storage functionality will work properly