- Add functionality to add a default dictionary for configuration fields
- Correct entitlement processing - Remove get_template functionality from ModelVariables, define it directly with LLM model definition in configuration file.
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
"""license-copied fields in LicensePeriod should be Nullable
|
||||
|
||||
Revision ID: 4eae969dcac2
|
||||
Revises: c08c3e7c3b1a
|
||||
Create Date: 2025-05-18 20:13:11.555330
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '4eae969dcac2'
|
||||
down_revision = 'c08c3e7c3b1a'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
with op.batch_alter_table('license_period', schema=None) as batch_op:
|
||||
batch_op.alter_column('currency',
|
||||
existing_type=sa.VARCHAR(length=20),
|
||||
nullable=True)
|
||||
batch_op.alter_column('basic_fee',
|
||||
existing_type=sa.DOUBLE_PRECISION(precision=53),
|
||||
nullable=True)
|
||||
batch_op.alter_column('max_storage_mb',
|
||||
existing_type=sa.INTEGER(),
|
||||
nullable=True)
|
||||
batch_op.alter_column('additional_storage_price',
|
||||
existing_type=sa.DOUBLE_PRECISION(precision=53),
|
||||
nullable=True)
|
||||
batch_op.alter_column('additional_storage_bucket',
|
||||
existing_type=sa.INTEGER(),
|
||||
nullable=True)
|
||||
batch_op.alter_column('included_embedding_mb',
|
||||
existing_type=sa.INTEGER(),
|
||||
nullable=True)
|
||||
batch_op.alter_column('additional_embedding_price',
|
||||
existing_type=sa.NUMERIC(precision=10, scale=4),
|
||||
nullable=True)
|
||||
batch_op.alter_column('additional_embedding_bucket',
|
||||
existing_type=sa.INTEGER(),
|
||||
nullable=True)
|
||||
batch_op.alter_column('included_interaction_tokens',
|
||||
existing_type=sa.INTEGER(),
|
||||
nullable=True)
|
||||
batch_op.alter_column('additional_interaction_token_price',
|
||||
existing_type=sa.NUMERIC(precision=10, scale=4),
|
||||
nullable=True)
|
||||
batch_op.alter_column('additional_interaction_bucket',
|
||||
existing_type=sa.INTEGER(),
|
||||
nullable=True)
|
||||
batch_op.alter_column('additional_storage_allowed',
|
||||
existing_type=sa.BOOLEAN(),
|
||||
nullable=True)
|
||||
batch_op.alter_column('additional_embedding_allowed',
|
||||
existing_type=sa.BOOLEAN(),
|
||||
nullable=True)
|
||||
batch_op.alter_column('additional_interaction_allowed',
|
||||
existing_type=sa.BOOLEAN(),
|
||||
nullable=True)
|
||||
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
pass
|
||||
# ### end Alembic commands ###
|
||||
@@ -0,0 +1,30 @@
|
||||
"""Add End Date (calculated field) to License
|
||||
|
||||
Revision ID: c08c3e7c3b1a
|
||||
Revises: 845d0428c5fe
|
||||
Create Date: 2025-05-18 19:55:32.702250
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = 'c08c3e7c3b1a'
|
||||
down_revision = '845d0428c5fe'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
with op.batch_alter_table('license', schema=None) as batch_op:
|
||||
batch_op.add_column(sa.Column('end_date', sa.Date(), nullable=True))
|
||||
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
pass
|
||||
# ### end Alembic commands ###
|
||||
Reference in New Issue
Block a user