fix plugin schema with primary key