mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-16 21:05:20 +02:00
- Introduced the ZERO_AUTO_RESET environment variable to enable automatic reset of the SQLite replica in case of replication halts. - Updated Docker Compose files to include ZERO_AUTO_RESET in service configurations. - Enhanced documentation to clarify the purpose and usage of the new variable.
23 lines
507 B
Python
23 lines
507 B
Python
"""reconcile zero_publication from canonical definition
|
|
|
|
Revision ID: 155
|
|
Revises: 154
|
|
"""
|
|
|
|
from collections.abc import Sequence
|
|
|
|
from alembic import op
|
|
from app.zero_publication import apply_publication
|
|
|
|
revision: str = "155"
|
|
down_revision: str | None = "154"
|
|
branch_labels: str | Sequence[str] | None = None
|
|
depends_on: str | Sequence[str] | None = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
apply_publication(op.get_bind())
|
|
|
|
|
|
def downgrade() -> None:
|
|
"""No-op. Historical publication shapes are immutable."""
|