Skip to content

Commit

Permalink
fix: new migration
Browse files Browse the repository at this point in the history
  • Loading branch information
rivamarco committed Oct 16, 2024
1 parent b786898 commit 9f587db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""init db
Revision ID: 470910bd0980
Revision ID: 6edab3f23907
Revises:
Create Date: 2024-10-16 13:41:50.275559
Create Date: 2024-10-16 13:50:44.743062
"""
from typing import Sequence, Union, Text
Expand All @@ -12,7 +12,7 @@
from app.db.tables.commons.json_encoded_dict import JSONEncodedDict

# revision identifiers, used by Alembic.
revision: str = '470910bd0980'
revision: str = '6edab3f23907'
down_revision: Union[str, None] = None
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None
Expand Down Expand Up @@ -66,7 +66,6 @@ def upgrade() -> None:
sa.Column('DATA_QUALITY', JSONEncodedDict(astext_type=Text()), nullable=True),
sa.Column('DRIFT', JSONEncodedDict(astext_type=Text()), nullable=True),
sa.Column('STATISTICS', JSONEncodedDict(astext_type=Text()), nullable=True),
sa.Column('PERCENTAGE', JSONEncodedDict(astext_type=Text()), nullable=True),
sa.ForeignKeyConstraint(['CURRENT_UUID'], ['current_dataset.UUID'], name=op.f('fk_current_dataset_metrics_CURRENT_UUID_current_dataset')),
sa.PrimaryKeyConstraint('UUID', name=op.f('pk_current_dataset_metrics'))
)
Expand Down
3 changes: 1 addition & 2 deletions api/app/db/tables/current_dataset_metrics_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,4 @@ class CurrentDatasetMetrics(Reflected, BaseTable, BaseDAO):
model_quality = Column('MODEL_QUALITY', JSONEncodedDict, nullable=True)
data_quality = Column('DATA_QUALITY', JSONEncodedDict, nullable=True)
drift = Column('DRIFT', JSONEncodedDict, nullable=True)
statistics = Column('STATISTICS', JSONEncodedDict, nullable=True)
percentage = Column('PERCENTAGE', JSONEncodedDict, nullable=True)
statistics = Column('STATISTICS', JSONEncodedDict, nullable=True)

0 comments on commit 9f587db

Please sign in to comment.