-
Notifications
You must be signed in to change notification settings - Fork 10
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 #194 from raphaelrpl/b-1.0
🐛 Fix bug related collection tiles trigger (close #193)
- Loading branch information
Showing
6 changed files
with
85 additions
and
8 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
65 changes: 65 additions & 0 deletions
65
bdc_catalog/alembic/98ba50e6e9ab_fix_optional_jsonb_columns.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,65 @@ | ||
"""fix optional jsonb columns | ||
Revision ID: 98ba50e6e9ab | ||
Revises: f3112636be24 | ||
Create Date: 2023-05-12 09:00:13.859502 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects import postgresql | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '98ba50e6e9ab' | ||
down_revision = 'f3112636be24' | ||
branch_labels = () | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.alter_column('collections', 'properties', | ||
existing_type=postgresql.JSONB(astext_type=sa.Text()), | ||
nullable=True, | ||
server_default='{}', | ||
comment='Contains the properties offered by STAC collections', | ||
schema='bdc') | ||
|
||
op.alter_column('collections', 'summaries', | ||
existing_type=postgresql.JSONB(astext_type=sa.Text()), | ||
nullable=True, | ||
server_default='{}', | ||
comment='Contains the STAC Collection summaries.', | ||
schema='bdc') | ||
|
||
op.alter_column('collections', 'item_assets', | ||
existing_type=postgresql.JSONB(astext_type=sa.Text()), | ||
nullable=True, | ||
server_default='{}', | ||
comment='Contains the STAC Extension Item Assets.', | ||
schema='bdc') | ||
|
||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.alter_column('collections', 'properties', | ||
existing_type=postgresql.JSONB(astext_type=sa.Text()), | ||
nullable=True, | ||
comment='Contains the properties offered by STAC collections', | ||
schema='bdc') | ||
|
||
op.alter_column('collections', 'summaries', | ||
existing_type=postgresql.JSONB(astext_type=sa.Text()), | ||
nullable=True, | ||
comment='Contains the STAC Collection summaries.', | ||
schema='bdc') | ||
|
||
op.alter_column('collections', 'item_assets', | ||
existing_type=postgresql.JSONB(astext_type=sa.Text()), | ||
nullable=True, | ||
comment='Contains the STAC Extension Item Assets.', | ||
schema='bdc') | ||
|
||
# ### 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
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 |
---|---|---|
|
@@ -19,4 +19,4 @@ | |
"""Version information for BDC-Catalog.""" | ||
|
||
|
||
__version__ = '1.0.1' | ||
__version__ = '1.0.2' |