From 114bcbd31cbff309be7d120348d983b2c6e6b5b9 Mon Sep 17 00:00:00 2001 From: Shivam-nagar23 Date: Thu, 16 Apr 2026 13:24:21 +0530 Subject: [PATCH 1/2] refactor: improve environment name validation logic --- ...604400_plugin_variable_runtime_support.down.sql | 10 ++++++++++ ...35604400_plugin_variable_runtime_support.up.sql | 14 ++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 scripts/sql/35604400_plugin_variable_runtime_support.down.sql create mode 100644 scripts/sql/35604400_plugin_variable_runtime_support.up.sql diff --git a/scripts/sql/35604400_plugin_variable_runtime_support.down.sql b/scripts/sql/35604400_plugin_variable_runtime_support.down.sql new file mode 100644 index 0000000000..9f45da6665 --- /dev/null +++ b/scripts/sql/35604400_plugin_variable_runtime_support.down.sql @@ -0,0 +1,10 @@ +BEGIN; + +ALTER TABLE "public"."plugin_step_variable" + DROP CONSTRAINT IF EXISTS plugin_step_variable_value_constraint_id_fkey; + +ALTER TABLE "public"."plugin_step_variable" + DROP COLUMN IF EXISTS "is_runtime_arg", + DROP COLUMN IF EXISTS "value_constraint_id"; + +COMMIT; \ No newline at end of file diff --git a/scripts/sql/35604400_plugin_variable_runtime_support.up.sql b/scripts/sql/35604400_plugin_variable_runtime_support.up.sql new file mode 100644 index 0000000000..eea342e61a --- /dev/null +++ b/scripts/sql/35604400_plugin_variable_runtime_support.up.sql @@ -0,0 +1,14 @@ +BEGIN; + +-- Add is_runtime_arg and value_constraint_id to plugin_step_variable +-- These were intended in migration 30802500 (comment says so) but were missed +ALTER TABLE "public"."plugin_step_variable" + ADD COLUMN IF NOT EXISTS "is_runtime_arg" boolean NOT NULL DEFAULT FALSE, + ADD COLUMN IF NOT EXISTS "value_constraint_id" int; + +-- Add FK to value_constraint table +ALTER TABLE "public"."plugin_step_variable" + ADD CONSTRAINT "plugin_step_variable_value_constraint_id_fkey" + FOREIGN KEY ("value_constraint_id") REFERENCES "public"."value_constraint" ("id"); + +COMMIT; \ No newline at end of file From 958d1070c627c705c41548c59a83e5af7cb30dc5 Mon Sep 17 00:00:00 2001 From: Shivam-nagar23 Date: Tue, 21 Apr 2026 13:18:41 +0530 Subject: [PATCH 2/2] feat: add runtime support columns to plugin_step_variable table --- ...down.sql => 36004600_plugin_variable_runtime_support.down.sql} | 0 ...ort.up.sql => 36004600_plugin_variable_runtime_support.up.sql} | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename scripts/sql/{35604400_plugin_variable_runtime_support.down.sql => 36004600_plugin_variable_runtime_support.down.sql} (100%) rename scripts/sql/{35604400_plugin_variable_runtime_support.up.sql => 36004600_plugin_variable_runtime_support.up.sql} (100%) diff --git a/scripts/sql/35604400_plugin_variable_runtime_support.down.sql b/scripts/sql/36004600_plugin_variable_runtime_support.down.sql similarity index 100% rename from scripts/sql/35604400_plugin_variable_runtime_support.down.sql rename to scripts/sql/36004600_plugin_variable_runtime_support.down.sql diff --git a/scripts/sql/35604400_plugin_variable_runtime_support.up.sql b/scripts/sql/36004600_plugin_variable_runtime_support.up.sql similarity index 100% rename from scripts/sql/35604400_plugin_variable_runtime_support.up.sql rename to scripts/sql/36004600_plugin_variable_runtime_support.up.sql