mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-11-01 04:25:54 +00:00
25 lines
476 B
Python
25 lines
476 B
Python
|
"""Add is_webseed to Trackers
|
||
|
|
||
|
Revision ID: ffd23e570f92
|
||
|
Revises: 1add911660a6
|
||
|
Create Date: 2017-07-29 19:03:58.244769
|
||
|
|
||
|
"""
|
||
|
from alembic import op
|
||
|
import sqlalchemy as sa
|
||
|
|
||
|
|
||
|
# revision identifiers, used by Alembic.
|
||
|
revision = 'ffd23e570f92'
|
||
|
down_revision = '1add911660a6'
|
||
|
branch_labels = None
|
||
|
depends_on = None
|
||
|
|
||
|
|
||
|
def upgrade():
|
||
|
op.add_column('trackers', sa.Column('is_webseed', sa.Boolean(), nullable=False))
|
||
|
|
||
|
|
||
|
def downgrade():
|
||
|
op.drop_column('trackers', 'is_webseed')
|