-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: DESENG-443/UI implementation (#2413)
* Engagement Metadata Management - API changes * Engagement Metadata Management - UI changes * Update Changelog --------- Co-authored-by: Ratheesh kumar R <108045773+ratheesh-aot@users.noreply.github.com> Co-authored-by: VineetBala-AOT <90332175+VineetBala-AOT@users.noreply.github.com>
- Loading branch information
1 parent
c27ddcd
commit 0796978
Showing
54 changed files
with
2,567 additions
and
368 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
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
31 changes: 31 additions & 0 deletions
31
met-api/migrations/versions/dbe023373f4f_remove_taxon_default_add_constraint.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,31 @@ | ||
"""Remove default_value from engagement_metadata_taxa and add unique constraint | ||
Revision ID: dbe023373f4f | ||
Revises: 35124d2e41cb | ||
Create Date: 2024-01-30 17:05:25.313222 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects import postgresql | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'dbe023373f4f' | ||
down_revision = '35124d2e41cb' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.create_unique_constraint(None, 'engagement_metadata_taxa', ['id']) | ||
op.drop_column('engagement_metadata_taxa', 'default_value') | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('engagement_metadata_taxa', sa.Column( | ||
'default_value', sa.TEXT(), autoincrement=False, nullable=True)) | ||
op.drop_constraint(None, 'engagement_metadata_taxa', type_='unique') | ||
# ### 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
Oops, something went wrong.