-- Rename the misspelled column serverityId -> severityId on ServiceTicket (idempotent)
DO $$
BEGIN
  IF EXISTS (SELECT 1 FROM information_schema.columns WHERE table_name = 'ServiceTicket' AND column_name = 'serverityId') THEN
    ALTER TABLE "ServiceTicket" RENAME COLUMN "serverityId" TO "severityId";
  END IF;
END $$;
