ALTER TABLE "NpiProvider" ADD COLUMN IF NOT EXISTS "sortOrder" INTEGER NOT NULL DEFAULT 0;

-- Initialize sortOrder based on id (lower id = Provider #1)
UPDATE "NpiProvider" SET "sortOrder" = id WHERE "sortOrder" = 0;
