-
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.
- Loading branch information
Showing
6 changed files
with
86 additions
and
52 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
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 |
---|---|---|
@@ -1 +1 @@ | ||
1.2.0 | ||
1.2.1 |
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
backend/gn_module_dashboard/migrations/3bd3234cab96_add_missing_index.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 @@ | ||
"""add missing index | ||
Revision ID: 3bd3234cab96 | ||
Revises: 2628978e1016 | ||
Create Date: 2022-12-21 09:03:51.048633 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = "3bd3234cab96" | ||
down_revision = "2628978e1016" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
op.execute( | ||
""" | ||
CREATE unique index IF NOT EXISTS vm_synthese_id_synthese_idx on gn_dashboard.vm_synthese (id_synthese); | ||
CREATE index IF NOT EXISTS vm_synthese_cd_ref_idx on gn_dashboard.vm_synthese (cd_ref); | ||
CREATE unique index IF NOT EXISTS vm_synthese_frameworks_acquisition_framework_name_year_idx on gn_dashboard.vm_synthese_frameworks (acquisition_framework_name,year); | ||
CREATE unique index IF NOT EXISTS vm_taxonomie_name_taxon_level_idx on gn_dashboard.vm_taxonomie (name_taxon,level); | ||
""" | ||
) | ||
|
||
|
||
def downgrade(): | ||
pass |
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