-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Youness CHRIFI ALAOUI <[email protected]>
- Loading branch information
1 parent
37fa1e7
commit a0c4f3e
Showing
5 changed files
with
30 additions
and
1 deletion.
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
9 changes: 9 additions & 0 deletions
9
editoast/migrations/2024-11-19-143456_add_weight_to_operational_point/down.sql
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,9 @@ | ||
UPDATE infra_object_operational_point | ||
SET data = data - 'weight'; | ||
|
||
UPDATE infra | ||
SET railjson_version = '3.4.12'; | ||
|
||
ALTER TABLE infra | ||
ALTER COLUMN railjson_version | ||
SET DEFAULT '3.4.12'; |
14 changes: 14 additions & 0 deletions
14
editoast/migrations/2024-11-19-143456_add_weight_to_operational_point/up.sql
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,14 @@ | ||
UPDATE infra_object_operational_point | ||
SET data = jsonb_set( | ||
data, | ||
'{weight}', | ||
'null'::jsonb, | ||
true | ||
); | ||
|
||
UPDATE infra | ||
SET railjson_version = '3.4.13'; | ||
|
||
ALTER TABLE infra | ||
ALTER COLUMN railjson_version | ||
SET DEFAULT '3.4.13'; |
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