Huh? Are you claiming that a "black code" was enforced in Oregon until "a few years back." This is quite remarkable. Please provide a citatation to back up this strartling claim.
BTW, black codes were not simple segregation, they included bans on blacks owning property, blacks owning guns, and allowed employers to become "guardians" of their children.