19 lines
495 B
Python
19 lines
495 B
Python
|
|
"""Remove persisted announcement sources and interpretations; use memory only."""
|
||
|
|
import sqlalchemy as sa
|
||
|
|
from alembic import op
|
||
|
|
|
||
|
|
revision = "0017"
|
||
|
|
down_revision = "0016"
|
||
|
|
branch_labels = None
|
||
|
|
depends_on = None
|
||
|
|
|
||
|
|
|
||
|
|
def upgrade():
|
||
|
|
cache = sa.table("home_information", sa.column("resource", sa.String()))
|
||
|
|
op.execute(cache.delete().where(cache.c.resource.like("messages:%")))
|
||
|
|
|
||
|
|
|
||
|
|
def downgrade():
|
||
|
|
# Platform cache is reproducible; deleted text and interpretations are not restored.
|
||
|
|
pass
|