Moodle
  1. Moodle
  2. MDL-15984

Inconsistent schema when upgrading

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.8.5, 1.9.3
    • Fix Version/s: None
    • Component/s: Database SQL/XMLDB, Groups
    • Labels:
      None
    • Environment:
      PostgreSQL 8.1.11
    • Database:
      PostgreSQL
    • Affected Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      When upgrading from 1.8.5+ (Build: 20080507) to 1.9.2+ (Build: 20080725), the following schema inconsistencies occur:

      1.) groupings_groups.groupid does not have a default set, though lib/db/install.xml has default="0"
      2.) groups.courseid has default of 0, though lib/db/install.xml has no default
      3.) groups.enrolmentkey has a default of '', though lib/db/install.xml has no default
      4.) groups.name is varchar(255), though lib/db/install.xml is varchar(254)

        Gliffy Diagrams

          Activity

          Chris Bandy created issue -
          Chris Bandy made changes -
          Field Original Value New Value
          Priority Minor [ 4 ] Major [ 3 ]
          Chris Bandy made changes -
          Description When upgrading from 1.8.5+ (Build: 20080507) to 1.9.2+ (Build: 20080725), the field groupings_groups.groupid does not have a default set, even though lib/db/install.xml has default="0"

          groupings_groups.groupid is a foreign key.
          When upgrading from 1.8.5+ (Build: 20080507) to 1.9.2+ (Build: 20080725), the following schema inconsistencies occur:

          1.) groupings_groups.groupid does not have a default set, though lib/db/install.xml has default="0"
          2.) groups.courseid has default of 0, though lib/db/install.xml has no default
          3.) groups.enrolmentkey has a default of '', though lib/db/install.xml has no default
          4.) groups.name is varchar(255), though lib/db/install.xml is varchar(254)
          Chris Bandy made changes -
          Affects Version/s 1.9.3 [ 10290 ]
          Affects Version/s 1.9.2 [ 10280 ]
          Martin Dougiamas made changes -
          Workflow jira [ 27845 ] MDL Workflow [ 43754 ]
          Martin Dougiamas made changes -
          Workflow MDL Workflow [ 43754 ] MDL Full Workflow [ 72137 ]
          Michael de Raadt made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Won't Fix [ 2 ]

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: