mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-05 22:02:39 +02:00
feat: add notifications table and configure Electric SQL replication
- Created a new notifications table with necessary fields and indexes. - Set up Electric SQL replication for notifications, search_source_connectors, and documents tables. - Implemented idempotent checks for user and publication creation in the migration script.
This commit is contained in:
parent
f7f11877ce
commit
32b8bb33f9
1 changed files with 5 additions and 5 deletions
|
|
@ -1,7 +1,7 @@
|
|||
"""Add notifications table and Electric SQL replication
|
||||
|
||||
Revision ID: 64
|
||||
Revises: 63
|
||||
Revision ID: 66
|
||||
Revises: 65
|
||||
|
||||
Creates notifications table and sets up Electric SQL replication
|
||||
(user, publication, REPLICA IDENTITY FULL) for notifications,
|
||||
|
|
@ -14,14 +14,14 @@ from alembic import context, op
|
|||
|
||||
# Get Electric SQL user credentials from env.py configuration
|
||||
_config = context.config
|
||||
ELECTRIC_DB_USER = _config.get_main_option("electric_db_user", "electric")
|
||||
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 = "64"
|
||||
down_revision: str | None = "63"
|
||||
revision: str = "66"
|
||||
down_revision: str | None = "65"
|
||||
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