The dependencies of a version should be stored as JSON in the database. A migration is needed to migrate existing data.