"Duplicate key in shape column error" is produced during Upgrade if archiving has been enabled on any feature class or table.
The upgrade routine creates an invalid trigger on the archive table of each dataset on which archiving has been enabled. This causes the 'Duplicate key in shape column' error during upgrade.