From 5279a26ae6b042cb7053498427d02726f5b9ba37 Mon Sep 17 00:00:00 2001 From: Youness CHRIFI ALAOUI Date: Mon, 2 Sep 2024 17:33:12 +0200 Subject: [PATCH] editoast: add new migration --- .../down.sql | 2 ++ .../up.sql | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 editoast/migrations/2024-09-02-132335_replace_mode_ac_with_air_conditioning/down.sql create mode 100644 editoast/migrations/2024-09-02-132335_replace_mode_ac_with_air_conditioning/up.sql diff --git a/editoast/migrations/2024-09-02-132335_replace_mode_ac_with_air_conditioning/down.sql b/editoast/migrations/2024-09-02-132335_replace_mode_ac_with_air_conditioning/down.sql new file mode 100644 index 00000000000..0f20936336d --- /dev/null +++ b/editoast/migrations/2024-09-02-132335_replace_mode_ac_with_air_conditioning/down.sql @@ -0,0 +1,2 @@ +UPDATE rolling_stock +SET effort_curves = REGEXP_REPLACE(effort_curves::text, 'AIR_CONDITIONING', 'AC', 'g')::jsonb; \ No newline at end of file diff --git a/editoast/migrations/2024-09-02-132335_replace_mode_ac_with_air_conditioning/up.sql b/editoast/migrations/2024-09-02-132335_replace_mode_ac_with_air_conditioning/up.sql new file mode 100644 index 00000000000..0ea46796451 --- /dev/null +++ b/editoast/migrations/2024-09-02-132335_replace_mode_ac_with_air_conditioning/up.sql @@ -0,0 +1,2 @@ +UPDATE rolling_stock +SET effort_curves = REGEXP_REPLACE(effort_curves::text, 'AC', 'AIR_CONDITIONING', 'g')::jsonb; \ No newline at end of file