- Add dynamic fields to DocumentVersion in case the Catalog requires it.
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
"""Add catalog_properties to DocumentVersion
|
||||
|
||||
Revision ID: 6c5ca750e60c
|
||||
Revises: b64d5cf32c7a
|
||||
Create Date: 2024-10-29 08:33:54.663211
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
import pgvector
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '6c5ca750e60c'
|
||||
down_revision = 'b64d5cf32c7a'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('document_version', sa.Column('catalog_properties', postgresql.JSONB(astext_type=sa.Text()), nullable=True))
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column('document_version', 'catalog_properties')
|
||||
# ### end Alembic commands ###
|
||||
Reference in New Issue
Block a user