CI and images / lint (push) Successful in 2s
CI and images / extension-version (push) Successful in 2s
CI and images / extension-test (push) Successful in 20s
CI and images / frontend-build (push) Successful in 25s
CI and images / backend-lint-and-test (push) Successful in 50s
CI and images / integration (push) Successful in 2m38s
CI and images / build-agent (push) Successful in 5s
CI and images / sign-extension (push) Successful in 8s
CI and images / build-web (push) Successful in 4m10s
CI and images / smoke-web (push) Successful in 1m3s
CI and images / promote (push) Successful in 1s
CI and images / refresh-dev (push) Skipped
CI and images / unattended-failure (push) Skipped
Images and attachments are backed up off-site, one object per file, so the tar+zstd of /images goes: its service and restore, both tasks, the trigger and restore routes, the Keep last setting, the screen's Images section, and the tests. Migration 0122 drops backup_run.tar_path and import_settings.backup_images_keep_last_n and deletes any images runs. The local database dump stays for an install with no off-site destination, and the Backups card now says plainly that images and attachments are backed up only off-site. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
31 lines
872 B
Python
31 lines
872 B
Python
"""Retire the images tarball backup.
|
|
|
|
Images and attachments are backed up off-site, one object per file
|
|
(backup_blob). The tarball of /images that this replaces is gone, with its
|
|
retention setting, its path column, and any runs it left.
|
|
|
|
Revision ID: 0122
|
|
Revises: 0121
|
|
Create Date: 2026-11-08
|
|
|
|
"""
|
|
import sqlalchemy as sa
|
|
from alembic import op
|
|
|
|
revision = "0122"
|
|
down_revision = "0121"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
op.execute("DELETE FROM backup_run WHERE kind = 'images'")
|
|
op.drop_column("backup_run", "tar_path")
|
|
op.drop_column("import_settings", "backup_images_keep_last_n")
|
|
|
|
|
|
def downgrade() -> None:
|
|
op.add_column("import_settings", sa.Column(
|
|
"backup_images_keep_last_n", sa.Integer(), nullable=False, server_default="3"))
|
|
op.add_column("backup_run", sa.Column("tar_path", sa.Text(), nullable=True))
|