Commit Graph

5 Commits

Author SHA1 Message Date
Ryan Chen
f1a05a68a8 Make migrations idempotent for production DB with pre-existing columns
Check for existing columns/tables before adding to avoid duplicate
column errors when production DB state is ahead of Alembic history.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 10:36:21 -04:00
Ryan Chen
bac02fecf5 Fix SQLite circular dependency in batch migrations
Split batch_alter_table operations to avoid circular dependency
errors caused by the current_turn_team_id foreign key during
SQLite table recreation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 10:33:24 -04:00
Ryan Chen
69992f1be9 Add question ownership and sharing
Questions now have a created_by field linking to the user who created them.
Users only see questions they own or that have been shared with them.
Includes share dialog, user search, bulk sharing, and export/import
respects ownership.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 09:43:04 -04:00
ryan
e431ba45e9 oops 2026-01-18 16:22:43 -05:00
Ryan Chen
00e9eb8986 initial 2025-12-22 14:47:25 -05:00