A deployable markdown editor that connects with your self hosted files and lets you edit in a beautiful interface
0
fork

Configure Feed

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

Fix auth_tokens table schema with UNIQUE constraint

- Add UNIQUE(user_id, provider) constraint to auth_tokens table
- This is required for the ON CONFLICT clause in SaveAuthToken
- Fixes SQL logic error when saving OAuth tokens
- Users must be re-authenticated after this migration

+1
+1
backend/internal/database/migrations/001_initial.sql
··· 18 18 refresh_token TEXT, 19 19 expires_at DATETIME, 20 20 created_at DATETIME DEFAULT CURRENT_TIMESTAMP, 21 + UNIQUE(user_id, provider), 21 22 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE 22 23 ); 23 24