Files
evig/scripts/db/migrations/027b_protocol_input_method.sql
T
g-butandClaude Opus 4.6 4c6f6d0086 fix: database SSOT violations — migrations, TABLE_NAMES, transactions, indexes
- Renumber 8 duplicate migration files (002, 004, 005, 008, 020, 027, 040)
  that caused silent skipping during execution
- Clean TABLE_NAMES: add 12 missing schema tables, keep legacy raw-SQL
  tables with clear comments, remove truly phantom entries
- Wrap bulk import product+inventory in transaction (was 2 separate writes)
- Wrap marketplace conversation+message+metadata in transaction (race fix)
- Add missing indexes: listings(verifiedAt), listings(priceChf),
  users(isStaff, createdAt) + migration 055
- Sync Drizzle schema with new indexes

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 21:02:36 +02:00

10 lines
398 B
SQL

-- Migration 027: Add input_method column to meeting_protocols
-- Pipeline entry point: audio, transcript, notes, tasks
ALTER TABLE meeting_protocols
ADD COLUMN IF NOT EXISTS input_method TEXT DEFAULT 'transcript'
CHECK (input_method IN ('audio', 'transcript', 'notes', 'tasks'));
COMMENT ON COLUMN meeting_protocols.input_method
IS 'Pipeline entry point: audio, transcript, notes, tasks';