mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-02 19:55:18 +02:00
feat: add notifications table and Electric SQL replication setup
- Introduced a new notifications table with relevant fields and indexes. - Configured Electric SQL replication for the notifications, search_source_connectors, and documents tables. - Centralized Electric SQL user credentials in the migration script for better management. - Ensured idempotency in the migration process for creating users and publications.
This commit is contained in:
parent
2e0f742000
commit
31a5581af1
3 changed files with 3077 additions and 3017 deletions
|
|
@ -1,7 +1,7 @@
|
|||
"""Add notifications table and Electric SQL replication
|
||||
|
||||
Revision ID: 62
|
||||
Revises: 61
|
||||
Revision ID: 64
|
||||
Revises: 63
|
||||
|
||||
Creates notifications table and sets up Electric SQL replication
|
||||
(user, publication, REPLICA IDENTITY FULL) for notifications,
|
||||
|
|
@ -18,8 +18,8 @@ ELECTRIC_DB_USER = _config.get_main_option("electric_db_user", "electric")
|
|||
ELECTRIC_DB_PASSWORD = _config.get_main_option("electric_db_password", "electric_password")
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision: str = "62"
|
||||
down_revision: str | None = "61"
|
||||
revision: str = "64"
|
||||
down_revision: str | None = "63"
|
||||
branch_labels: str | Sequence[str] | None = None
|
||||
depends_on: str | Sequence[str] | None = None
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue