SurfSense/surfsense_backend/alembic/versions
Anish Sarkar 22b2d6e400 feat: add archived column to notifications and implement archiving functionality
- Introduced an archived boolean column in the notifications table to allow users to archive inbox items without deletion.
- Updated Notification model to include the archived field with default value.
- Added ArchiveRequest and ArchiveResponse models for handling archive/unarchive operations.
- Implemented API endpoint to archive or unarchive notifications, ensuring real-time updates with Electric SQL.
- Enhanced InboxSidebar to filter and display archived notifications appropriately.
2026-01-21 20:34:58 +05:30
..
0_initial_schema.py feat: add migration 0 for initial schema setup 2026-01-14 17:04:37 +02:00
1_add_github_connector_enum.py chore: linting 2026-01-15 00:05:53 -08:00
2_add_linear_connector_enum.py Fixed formatting and linting post Jira connector PR 2025-07-25 10:52:34 -07:00
3_add_linear_connector_to_documenttype_.py Fixed formatting and linting post Jira connector PR 2025-07-25 10:52:34 -07:00
4_add_linkup_api_enum.py fix linkup enum migration file 2025-08-13 21:18:33 +02:00
5_remove_title_char_limit.py Make migration 5 idempotent 2026-01-13 20:12:58 +02:00
6_change_podcast_content_to_transcript.py Fixed formatting and linting post Jira connector PR 2025-07-25 10:52:34 -07:00
7_remove_is_generated_column.py Fixed formatting and linting post Jira connector PR 2025-07-25 10:52:34 -07:00
8_add_content_hash_to_documents.py fix migration version 8 2025-12-13 21:45:45 +02:00
9_add_discord_connector_enum_and_documenttype.py Fixed formatting and linting post Jira connector PR 2025-07-25 10:52:34 -07:00
10_update_chattype_enum_to_qna_report_structure.py chore: linting 2026-01-15 00:05:53 -08:00
11_add_llm_config_table_and_relationships.py Fixed formatting and linting post Jira connector PR 2025-07-25 10:52:34 -07:00
12_add_logs_table.py Fixed formatting and linting post Jira connector PR 2025-07-25 10:52:34 -07:00
13_add_jira_connector_enums.py Fixed formatting and linting post Jira connector PR 2025-07-25 10:52:34 -07:00
14_add_confluence_connector_enums.py Add migration file 2025-07-26 14:46:23 +02:00
15_add_clickup_connector_enums.py fix ruff isues 2025-08-01 00:27:50 +02:00
16_fix_connector_unique_constraint.py fix(backend): modified unique constraint on search_source_connectors table 2025-08-02 11:47:49 -07:00
17_add_google_calendar_connector_enums.py add requested changes 2025-08-07 21:18:25 +02:00
18_add_google_gmail_connector_enums.py generate migration file 2025-08-15 09:11:14 +02:00
19_add_airtable_connector_enums.py Add airtable connector auth flow routes 2025-08-26 13:56:31 +02:00
20_add_openrouter_to_litellmprovider_enum.py Added OpenRouter to provider list 2025-09-16 18:26:58 -07:00
21_add_luma_connector_enums.py Added Luma connector 2025-09-28 14:59:10 -07:00
22_add_cometapi_to_litellmprovider_enum.py feat: Added CometAPI to LLM providers list 2025-10-04 15:13:03 +08:00
23_associate_connectors_with_search_spaces.py feat: added missed migration 2025-10-12 20:15:27 -07:00
24_fix_null_chat_types.py Make migration 24 idempotent 2026-01-13 20:13:08 +02:00
25_migrate_llm_configs_to_search_spaces.py feat: added periodic tasks in backend db and frontend hooks 2025-10-22 16:14:25 -07:00
26_add_language_column_to_llm_configs.py feat: added missed migration 2025-10-12 20:15:27 -07:00
27_add_searxng_connector_enum.py refactor: updated SearxNG connector migration and fixed validation for SearxNG host URL 2025-10-13 13:57:58 -07:00
28_add_chinese_litellmprovider_enum.py chore: removed chinese comments to pass ruff checks and updated migration nos 2025-10-13 20:07:32 -07:00
29_add_unique_identifier_hash_to_documents.py fix migration version 29 2025-12-13 21:46:39 +02:00
30_add_baidu_search_connector_enum.py feat: bumped version to v0.0.8 2025-10-16 22:44:12 -07:00
31_add_elasticsearch_connector_enums.py feat: update Elasticsearch integration and logging 2025-10-17 02:21:56 +05:30
32_add_periodic_indexing_fields.py feat: added periodic tasks in backend db and frontend hooks 2025-10-22 16:14:25 -07:00
33_add_page_limits_to_user.py feat: added file limit tracking for a user 2025-10-30 14:58:08 -07:00
34_add_podcast_staleness_detection.py Make migration 34 idempotent 2026-01-13 20:13:13 +02:00
35_update_litellmprovider_enum_comprehensive.py feat(llm): expand LLM provider options and improve model selection UI 2025-11-13 02:41:30 -08:00
36_remove_fk_constraints_for_global_llm_configs.py chore(lint): ruff checks 2025-11-26 13:22:31 -08:00
37_add_system_prompts_to_searchspaces.py fix(refactor): Alembic migrations 2025-11-26 13:22:01 -08:00
38_add_webcrawler_connector_enum.py Renaming resources 2025-11-22 19:19:00 -08:00
39_add_rbac_tables.py feat: Implement Role-Based Access Control (RBAC) for search space resources. 2025-11-27 22:45:04 -08:00
40_move_llm_preferences_to_searchspace.py fix migration version 40 | upgrade 2025-12-13 21:47:20 +02:00
41_backfill_rbac_for_existing_searchspaces.py ruff format 2025-11-29 00:16:41 -08:00
42_drop_user_search_space_preferences.py ruff format 2025-11-29 00:16:41 -08:00
43_add_blocknote_fields_to_documents.py fix migration version 43 | upgrade 2025-12-13 21:48:13 +02:00
44_add_bookstack_connector_enums.py fix: update migration id from 39 to 44 after syncing with upstream 2025-12-06 09:16:24 +08:00
45_add_updated_at_to_documents.py fix migration version 45 | upgrade 2025-12-13 21:48:54 +02:00
46_remove_last_edited_at_from_documents.py fix alembic version 46 2025-12-13 22:04:53 +02:00
47_copy_created_at_to_updated_at.py feat: implement time-based filtering for document retrieval using 'updated_at' timestamp 2025-12-12 02:42:20 -08:00
48_add_note_to_documenttype_enum.py fix: fixed linting for some files 2025-12-16 20:25:50 +05:30
49_migrate_old_chats_to_new_chat.py chore: linting 2026-01-15 00:05:53 -08:00
50_remove_podcast_chat_columns.py refactor: remove chat-related fields and legacy podcast generation function 2025-12-21 23:31:11 -08:00
51_add_new_llm_config_table.py feat: migrated to surfsense deep agent 2025-12-23 01:16:25 -08:00
52_rename_llm_preference_columns.py Make migration 52 idempotent 2026-01-13 20:13:30 +02:00
53_cleanup_old_llm_configs.py chore: ruff format 2025-12-23 02:56:13 -08:00
54_add_google_drive_connector_enums.py feat: added circleback connector 2025-12-30 09:00:59 -08:00
55_rename_google_drive_connector_to_file.py Make migration 55 idempotent 2026-01-13 20:13:50 +02:00
56_add_circleback_connector_enums.py chore: linting 2026-01-01 22:56:37 -08:00
57_allow_multiple_connectors_per_type.py chore: linting 2026-01-07 19:10:53 -08:00
58_unique_connector_name_per_space_user.py chore: linting 2026-01-07 19:10:53 -08:00
59_add_teams_connector_enums.py lint 2026-01-09 13:53:09 -08:00
60_add_surfsense_docs_tables.py chore: linting 2026-01-12 14:17:15 -08:00
61_add_chat_visibility_and_created_by.py feat: added shared chats 2026-01-13 00:17:12 -08:00
62_add_mcp_connector_type.py chore: linting 2026-01-15 00:05:53 -08:00
63_allow_multiple_connectors_with_unique_.py chore: linting 2026-01-15 00:05:53 -08:00
64_add_user_profile_columns.py fix: migrations 2026-01-14 15:19:00 -08:00
65_add_message_author_id.py refactor: remove read tracking from mentions (prep for notification center) 2026-01-16 19:15:10 +02:00
66_add_notifications_table_and_electric_replication.py Reapply "Merge pull request #686 from AnishSarkar22/feat/replace-logs" 2026-01-16 11:32:06 -08:00
67_add_pg_trgm_index_for_document_title_search.py chore: update redundant comments 2026-01-18 20:13:51 +05:30
68_add_chat_comments_table.py chore: resolve migration file conflicts 2026-01-19 17:10:11 +02:00
69_add_chat_comment_mentions_table.py chore: resolve migration file conflicts 2026-01-19 17:10:11 +02:00
70_add_comments_permissions_to_roles.py chore: resolve migration file conflicts 2026-01-19 17:10:11 +02:00
71_add_comments_electric_replication.py feat: add Electric SQL replication for chat_comment_mentions 2026-01-19 17:28:44 +02:00
72_simplify_rbac_roles.py feat: Refactor role permissions and access checks 2026-01-20 02:59:32 -08:00
73_add_archived_column_to_notifications.py feat: add archived column to notifications and implement archiving functionality 2026-01-21 20:34:58 +05:30
e55302644c51_add_github_connector_to_documenttype_.py Fixed formatting and linting post Jira connector PR 2025-07-25 10:52:34 -07:00