mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-13 09:30:40 +00:00
Add secure filename for modesl and services
This commit is contained in:
28
migrations/versions/7378391345fa_.py
Normal file
28
migrations/versions/7378391345fa_.py
Normal file
@ -0,0 +1,28 @@
|
||||
"""empty message
|
||||
|
||||
Revision ID: 7378391345fa
|
||||
Revises: 6227310c2112
|
||||
Create Date: 2020-02-17 12:29:17.851954
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '7378391345fa'
|
||||
down_revision = '6227310c2112'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('jobs', sa.Column('secure_filename', sa.String(length=32), nullable=True))
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column('jobs', 'secure_filename')
|
||||
# ### end Alembic commands ###
|
Reference in New Issue
Block a user