-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1471 from microbiomedata/issue-1469-nmdc-edge-sou…
…rce-client Add `nmdc_edge` as a permissible `source_client` value
- Loading branch information
Showing
3 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
nmdc_server/migrations/versions/4aee1e10bb24_add_nmdc_edge_source_client.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,25 @@ | ||
"""Add nmdc_edge as a source_client value | ||
Revision ID: 4aee1e10bb24 | ||
Revises: b22c459110a0 | ||
Create Date: 2024-11-26 19:16:09.105692 | ||
""" | ||
|
||
from typing import Optional | ||
|
||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = "4aee1e10bb24" | ||
down_revision: Optional[str] = "b22c459110a0" | ||
branch_labels: Optional[str] = None | ||
depends_on: Optional[str] = None | ||
|
||
|
||
def upgrade(): | ||
op.execute("ALTER TYPE submissionsourceclient ADD VALUE 'nmdc_edge'") | ||
|
||
|
||
def downgrade(): | ||
op.execute("ALTER TYPE submissionsourceclient DROP VALUE 'nmdc_edge'") |
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