-- Add name column nullable first for backfill
ALTER TABLE "POLineItem" ADD COLUMN "name" TEXT;

-- Backfill: copy existing description into name
UPDATE "POLineItem" SET "name" = "description";

-- Make name required
ALTER TABLE "POLineItem" ALTER COLUMN "name" SET NOT NULL;

-- Make description optional
ALTER TABLE "POLineItem" ALTER COLUMN "description" DROP NOT NULL;
