     -- Drop not null constraint on formJSONValues for accountIntegrations
     if exists (select 1 from information_schema.columns where table_name = 'accountIntegrations' and column_name = 'formJSONValues') then
       alter table "accountIntegrations" alter column "formJSONValues" drop not null;
+    end if;
+
+    -- Update the name for masterIntegrationFields
+    if exists (select 1 from "masterIntegrationFields" where "id" = 116) then
+      update "masterIntegrationFields" set "name"='password' where "id"= 116;
     end if;
 
     -- Remove unused systemCodes

    --Add runShImage column to systemMachineImages
    if not exists (select 1 from information_schema.columns where table_name = 'systemMachineImages' and column_name = 'runShImage') then
      alter table "systemMachineImages" add column "runShImage" varchar(80);
      update "systemMachineImages" set "runShImage"='374168611083.dkr.ecr.us-east-1.amazonaws.com/runsh:v4.10.23' where "runShImage" is null;
      alter table "systemMachineImages" alter column "runShImage" set not null;
    end if;


      alter table "systemIntegrations" add constraint "systemIntegrations_masterIntegrationId_fkey" foreign key ("masterIntegrationId") references "masterIntegrations"(id) on update restrict on delete restrict;
    end if;

  -- Adds foreign key relationships for subscriptionIntegrations
    if not exists (select 1 from pg_constraint where conname = 'subscriptionIntegrations_subscriptionId_fkey') then
      alter table "subscriptionIntegrations" add constraint "subscriptionIntegrations_subscriptionId_fkey" foreign key ("subscriptionId") references "subscriptions"(id) on update restrict on delete restrict;
