Updated the migration to support adding a share code to galleries that exist