Database changes Documents - llm and languagefields on tenant, processing on documents
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
"""Additional processing fields added to the model
|
||||
|
||||
Revision ID: 45620002ae0d
|
||||
Revises: 4f22dd6260e3
|
||||
Create Date: 2024-05-01 21:55:26.729666
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '45620002ae0d'
|
||||
down_revision = '4f22dd6260e3'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('document_version', sa.Column('processing', sa.Boolean(), nullable=False))
|
||||
op.add_column('document_version', sa.Column('processing_started_at', sa.DateTime(), nullable=True))
|
||||
op.add_column('document_version', sa.Column('processing_finished_at', sa.DateTime(), nullable=True))
|
||||
op.add_column('document_version', sa.Column('processing_error', sa.String(length=255), nullable=True))
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column('document_version', 'processing_error')
|
||||
op.drop_column('document_version', 'processing_finished_at')
|
||||
op.drop_column('document_version', 'processing_started_at')
|
||||
op.drop_column('document_version', 'processing')
|
||||
# ### end Alembic commands ###
|
||||
Reference in New Issue
Block a user