- Quote column names in check constraint to ensure proper PostgreSQL syntax
- Use removeConstraint method instead of raw SQL for rollback consistency
- Ensures folders cannot have documentId or collectionId set
- Add parentId and isFolder columns to stars table
- Add self-referential relationship for hierarchical structure
- Add database constraints to ensure folders don't have content
- Add indexes for efficient folder queries
- Update server Star model with new fields and relationships
- Update Star presenter to include new fields in API responses
This enables users to organize their starred items into folders
while maintaining backward compatibility with existing stars.
API-only changes - no client-side modifications included.