Deploy Stride with encrypted manual and scheduled Garmin sync

This commit is contained in:
Peter Stockings
2026-10-01 20:42:28 +10:00
parent 24c7fc2c6a
commit 8555695c5e
28 changed files with 900 additions and 56 deletions
@@ -0,0 +1,21 @@
"""Add opt-in public activity share links."""
import sqlalchemy as sa
from alembic import op
revision = "c72418a19e30"
down_revision = "bdbac89195a7"
branch_labels = None
depends_on = None
def upgrade():
with op.batch_alter_table("activity") as batch_op:
batch_op.add_column(sa.Column("share_token", sa.String(64), nullable=True))
batch_op.create_unique_constraint("uq_activity_share_token", ["share_token"])
def downgrade():
with op.batch_alter_table("activity") as batch_op:
batch_op.drop_constraint("uq_activity_share_token", type_="unique")
batch_op.drop_column("share_token")