Fix edges not being added in manage_schema

Fixes #788

(cherry picked from commit fe6ab666ec2c39b7518beb61b02feed9f9dabba8)