mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-21 15:36:18 -05:00
Reformatting. Switching excluded_urls to a generic Download.settings json. Download workers filter excluded urls.
29 lines
610 B
Python
29 lines
610 B
Python
"""Download settings
|
|
|
|
Revision ID: c72d305cf11e
|
|
Revises: d2eace02f5b9
|
|
Create Date: 2022-10-14 13:00:30.333384
|
|
|
|
"""
|
|
from alembic import op
|
|
from sqlalchemy.orm import Session
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'c72d305cf11e'
|
|
down_revision = 'd2eace02f5b9'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
bind = op.get_bind()
|
|
session = Session(bind=bind)
|
|
|
|
session.execute('ALTER TABLE download ADD COLUMN settings JSONB')
|
|
|
|
|
|
def downgrade():
|
|
bind = op.get_bind()
|
|
session = Session(bind=bind)
|
|
|
|
session.execute('ALTER TABLE download DROP COLUMN IF EXISTS settings')
|