Uploaded image for project: 'SimplyE 2.0'
  1. SimplyE 2.0
  2. SIMPLY-3470

Migration script that created licensepools.self_hosted didn't set its default value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • None
    • Server - Core
    • None
    • SIMPLY S2 Jan 19 - Feb 2, SIMPLY S3 Feb 2 - 16, SIMPLY S4 Feb 16 - March 2, SIMPLY S5 March 2 - March 16, SIMPLY S6 March 16 - March 30

      The migration script 20200702-add-licensepool-self_hosted-field.sql created the field licensepools.self_hosted but didn't set the default value defined in the ORM. As a result, circulation managers migrated from earlier releases have a lot of licensepools whose self_hosted field is null.

      This can break queries that assume self_hosted has a boolean value, most notably Collection.restrict_to_ready_deliverable_works.

            leonardrichardson Leonard Richardson [X] (Inactive)
            leonardrichardson Leonard Richardson [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: