🪻 distributed transcription service thistle.dunkirk.sh
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: fix migrations

+14 -1
+14 -1
src/db/schema.ts
··· 248 248 `, 249 249 }, 250 250 { 251 - version: 4, 251 + version: 10, 252 252 name: "Add email notification preferences", 253 253 sql: ` 254 254 ALTER TABLE users ADD COLUMN email_notifications_enabled BOOLEAN DEFAULT 1; ··· 271 271 272 272 CREATE INDEX IF NOT EXISTS idx_email_change_tokens_user_id ON email_change_tokens(user_id); 273 273 CREATE INDEX IF NOT EXISTS idx_email_change_tokens_token ON email_change_tokens(token); 274 + `, 275 + }, 276 + { 277 + version: 11, 278 + name: "Add NOT NULL constraints and missing indexes", 279 + sql: ` 280 + -- Note: SQLite doesn't support ALTER COLUMN to add NOT NULL to existing columns 281 + -- These tables were created in migration 6 and 8, but the columns should have been NOT NULL 282 + -- The constraints are enforced at the application level, this migration documents the intent 283 + 284 + -- Add missing indexes for performance 285 + CREATE INDEX IF NOT EXISTS idx_users_email_verified ON users(email_verified); 286 + CREATE INDEX IF NOT EXISTS idx_transcriptions_meeting_time_id ON transcriptions(meeting_time_id); 274 287 `, 275 288 }, 276 289 ];