Commit Graph

2 Commits

Author SHA1 Message Date
codegen-sh[bot] fe7182d034 Fix database migration syntax for PostgreSQL
- 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
2025-09-14 14:06:57 +00:00
codegen-sh[bot] 07ea5fe84d Add database migration and server model changes for Star folders
- 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.
2025-09-14 13:49:02 +00:00