-
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 #140 from ecmwf-projects/copds-2032-multiple-repos
COPDS-2032 multiple repos
- Loading branch information
Showing
9 changed files
with
600 additions
and
256 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
"""multiple datasets repo. | ||
Revision ID: 36caa987229e | ||
Revises: 6ac5a2abf5f5 | ||
Create Date: 2024-12-27 11:12:14.551220 | ||
""" | ||
|
||
import sqlalchemy as sa | ||
from sqlalchemy.dialects import postgresql as dialect_postgresql | ||
|
||
import alembic | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "36caa987229e" | ||
down_revision = "6ac5a2abf5f5" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
alembic.op.drop_column("catalogue_updates", "metadata_repo_commit") | ||
alembic.op.add_column( | ||
"catalogue_updates", | ||
sa.Column("metadata_repo_commit", dialect_postgresql.JSONB, default={}), | ||
) | ||
|
||
|
||
def downgrade() -> None: | ||
alembic.op.drop_column("catalogue_updates", "metadata_repo_commit") | ||
alembic.op.add_column( | ||
"catalogue_updates", sa.Column("metadata_repo_commit", sa.String) | ||
) |
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.