mirror of
https://git.0x0.st/mia/0x0.git
synced 2024-09-19 12:42:54 -04:00
3d1facaec3
Needed for moderation.
30 lines
760 B
Python
30 lines
760 B
Python
"""Store user agent string with files
|
|
|
|
Revision ID: dd0766afb7d2
|
|
Revises: 30bfe33aa328
|
|
Create Date: 2023-03-29 07:18:49.113200
|
|
|
|
"""
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'dd0766afb7d2'
|
|
down_revision = '30bfe33aa328'
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('file', schema=None) as batch_op:
|
|
batch_op.add_column(sa.Column('ua', sa.UnicodeText(), nullable=True))
|
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('file', schema=None) as batch_op:
|
|
batch_op.drop_column('ua')
|
|
|
|
# ### end Alembic commands ###
|