-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: fixed orderby and limit and alembic
- Loading branch information
1 parent
fc28910
commit c5e0e37
Showing
10 changed files
with
193 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
97 changes: 0 additions & 97 deletions
97
api/alembic/versions/750ad194c81a_add_percentage_column.py
This file was deleted.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
api/alembic/versions/dccb82489f4d_add_percentage_column.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
"""add percentage column | ||
Revision ID: dccb82489f4d | ||
Revises: 6edab3f23907 | ||
Create Date: 2024-10-17 09:03:48.063883 | ||
""" | ||
from typing import Sequence, Union, Text | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
from app.db.tables.commons.json_encoded_dict import JSONEncodedDict | ||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = 'dccb82489f4d' | ||
down_revision: Union[str, None] = '6edab3f23907' | ||
branch_labels: Union[str, Sequence[str], None] = None | ||
depends_on: Union[str, Sequence[str], None] = None | ||
|
||
|
||
def upgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('current_dataset_metrics', sa.Column('PERCENTAGES', JSONEncodedDict(astext_type=Text()), nullable=True)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column('current_dataset_metrics', 'PERCENTAGES') | ||
# ### end Alembic commands ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.