-
Notifications
You must be signed in to change notification settings - Fork 26
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 #208 from PnX-SI/develop
Develop > Master / 0.4.1
- Loading branch information
Showing
18 changed files
with
529 additions
and
396 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 |
---|---|---|
@@ -1 +1 @@ | ||
0.4.0 | ||
0.4.1.dev0 |
40 changes: 40 additions & 0 deletions
40
backend/gn_module_monitoring/migrations/e78003460441_correction_t_observation_detail.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,40 @@ | ||
"""Correction t_observation_detail | ||
Revision ID: e78003460441 | ||
Revises: 2003e18f248a | ||
Create Date: 2023-01-02 16:44:18.715547 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'e78003460441' | ||
down_revision = '2003e18f248a' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
op.execute(""" | ||
ALTER TABLE gn_monitoring.t_observation_details | ||
DROP CONSTRAINT pk_t_observation_details; | ||
ALTER TABLE gn_monitoring.t_observation_details | ||
ADD CONSTRAINT pk_t_observation_details PRIMARY KEY (id_observation_detail); | ||
ALTER TABLE gn_monitoring.t_observation_details | ||
ADD uuid_observation_detail UUID DEFAULT uuid_generate_v4() NOT NULL; | ||
""") | ||
|
||
|
||
def downgrade(): | ||
op.execute(""" | ||
ALTER TABLE gn_monitoring.t_observation_details | ||
DROP CONSTRAINT pk_t_observation_details; | ||
ALTER TABLE gn_monitoring.t_observation_details | ||
ADD CONSTRAINT pk_t_observation_details PRIMARY KEY (id_observation); | ||
ALTER TABLE gn_monitoring.t_observation_details | ||
DROP COLUMN uuid_observation_detail; | ||
""") |
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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"cruved": {"C":1, "U":1, "D": 1}, | ||
"id_field_name": "id_observation_detail", | ||
"description_field_name": "id_observation_detail", | ||
"chained": true, | ||
"label": "Observation détail", | ||
"genre": "F", | ||
"display_properties": ["uuid_observation_detail"], | ||
"uuid_field_name": "uuid_observation_detail", | ||
"generic": { | ||
"id_observation_detail": { | ||
"type_widget": "text", | ||
"attribut_label": "Id observation", | ||
"hidden": true | ||
}, | ||
"id_observation": { | ||
"type_widget": "text", | ||
"attribut_label": "Id visite", | ||
"hidden": true | ||
}, | ||
"uuid_observation_detail": { | ||
"attribut_label": "uuid" | ||
}, | ||
"medias": { | ||
"type_widget": "medias", | ||
"attribut_label": "Médias", | ||
"schema_dot_table": "gn_monitoring.t_observations_details" | ||
} | ||
} | ||
} |
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.