mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
46 lines
1.6 KiB
Python
46 lines
1.6 KiB
Python
"""empty message
|
|
|
|
Revision ID: ad0d835fe5b1
|
|
Revises: 68ed092ffe5e
|
|
Create Date: 2022-01-18 16:23:45.673993
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'ad0d835fe5b1'
|
|
down_revision = '68ed092ffe5e'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.create_table('tesseract_ocr_models',
|
|
sa.Column('creation_date', sa.DateTime(), nullable=True),
|
|
sa.Column('filename', sa.String(length=255), nullable=True),
|
|
sa.Column('last_edited_date', sa.DateTime(), nullable=True),
|
|
sa.Column('mimetype', sa.String(length=255), nullable=True),
|
|
sa.Column('id', sa.Integer(), nullable=False),
|
|
sa.Column('user_id', sa.Integer(), nullable=True),
|
|
sa.Column('compatible_service_versions', sa.String(length=255), nullable=True),
|
|
sa.Column('description', sa.String(length=255), nullable=True),
|
|
sa.Column('publisher', sa.String(length=128), nullable=True),
|
|
sa.Column('publishing_year', sa.Integer(), nullable=True),
|
|
sa.Column('title', sa.String(length=64), nullable=True),
|
|
sa.Column('version', sa.String(length=16), nullable=True),
|
|
sa.ForeignKeyConstraint(['user_id'], ['users.id'], ),
|
|
sa.PrimaryKeyConstraint('id')
|
|
)
|
|
op.add_column('job_results', sa.Column('description', sa.String(length=255), nullable=True))
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_column('job_results', 'description')
|
|
op.drop_table('tesseract_ocr_models')
|
|
# ### end Alembic commands ###
|