pathced schema to make hash PRIMARY KEY