"0035_drop_plugin_catalog_settings" is 33 characters, and alembic_version.version_num is VARCHAR(32), so the upgrade failed with "value too long" (CI run 8800, integration). Renamed to 0035_drop_plugin_catalog. tests/test_migration_ids.py now checks every core and plugin revision id fits, in the unit lane, which never migrates. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
959 B
Python
30 lines
959 B
Python
"""Drop the plugin catalog's stored settings
|
|
|
|
Steward no longer has a plugin catalog (#5374): first-party plugins ship in the
|
|
image and a third-party plugin is a folder the operator mounts, so nothing reads
|
|
`plugins.index_url` or `plugins.repositories` any more. The removed feature
|
|
takes its rows with it, as 0025 did for the http plugin.
|
|
|
|
Revision ID: 0035_drop_plugin_catalog
|
|
Revises: 0034_user_time_zone
|
|
Create Date: 2026-10-08
|
|
"""
|
|
from typing import Sequence, Union
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
revision: str = "0035_drop_plugin_catalog"
|
|
down_revision: Union[str, None] = "0034_user_time_zone"
|
|
branch_labels: Union[str, Sequence[str], None] = None
|
|
depends_on: Union[str, Sequence[str], None] = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
op.execute(sa.text(
|
|
"DELETE FROM app_settings WHERE key IN ('plugins.index_url', 'plugins.repositories')"))
|
|
|
|
|
|
def downgrade() -> None:
|
|
# Deliberately empty: nothing would read the rows.
|
|
pass
|