MBS-6395, call DurationLookup->update() on medium insert + add test.
MBS-6395, Also update medium_index table when Edit::Medium::Edit makes changes to tracks.
MBS-6395, correctly deal with discs on which some tracks have a length, but not all.
MBS-6395, remove unneccesary 'use Try::Tiny' line.
MBS-6395, Move DurationLookup->update() calls into Data::Track.
MBS-6395, don't try to get track.medium from deleted tracks.
MBS-6395, use DELETE ... RETURNING ... to get medium ids which need updating.
Merge branch 'master' into mbs-6395

* master: (322 commits)
  Fix crash in release editor seeding
  Run GenerateSQL
  Fix MusicBrainz::Server reference to get_collator
  MBS-6548: Partial merge of MBS-5487 for ModBot
  Revert "MBS-6426: Accept Edit::Release::Edit edits that delete release events"
  Fix up a few broken spots with import (missing ha1 columns)
  mbs-6526-7: updating autoselect for myspace and soundcloud
  Fix script/create_test_db.sh to recreate extensions
  MBS-6384: Serialize CD stubs in JSON
  mbs-6524: standardise type/language display and editing order
  Move MB::S::get_collator to Translation, fix Form::Area test
  Remove unused variable
  Use relative links when generating wikidocs pages (MBS-5892)
  Use new page version in the wikidocs edit page form (MBS-6226)
  Addressing comment on pull request 280
  MBS-6501: utf8-encode username and password for md5'ing
  MBS-5487: update text to correct specificity
  Fix Controller::Edit::Open test, erroneous </li>
  MBS-6519: Fix column span on /recording pages
  Remove tests that remember me tokens are one-use
  ...
Merge branch 'master' into mbs-6395

* master: (92 commits)
  Add 'npm install' to production-deploy.sh
  MBS-6022, only replace the affected triggers during upgrade.
  MBS-6022, include upgrade script.
  MBS-6022, add image file extension to the data sent in pgq events.
  Fix editor subscription tests to have confirmed email addresses
  Update translations.
  MBS-6579: Do not use RDFa when showing release event diffs
  Finish tests in t/pgtap/inserting_edits_requires_confirmed_email.sql
  Remove trigger DDL from inserting edits pgtap test
  Fix PGTap tests
  Fixing tests
  MBS-6457: Move deprecated relationship information to JSON
  MBS-6457: Do not allow created deprecated relationships in relationship editor
  MBS-6276: Remove padding/fix alignment of lists in edits
  Add tests that to check which actions unconfirmed editors can view
  Add tests that various actions return 400 if DB_READ_ONLY is set
  MBS-6354: Enforce requirement on email address at database level
  MBS-6354: Do not allow submitting edits without a confirmed email address
  MBS-6578: Make area merges possible when areas are country areas
  MBS-6578: Make area merges possible when areas are used by entities
  ...
Merge branch 'mbs-6395' into beta

* mbs-6395:
  MBS-6395, use DELETE ... RETURNING ... to get medium ids which need updating.
  MBS-6395, don't try to get track.medium from deleted tracks.
  MBS-6395, Move DurationLookup->update() calls into Data::Track.
  MBS-6395, remove unneccesary 'use Try::Tiny' line.
  MBS-6395, correctly deal with discs on which some tracks have a length, but not all.
  MBS-6395, Also update medium_index table when Edit::Medium::Edit makes changes to tracks.
  MBS-6395, call DurationLookup->update() on medium insert + add test.