Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-17756

Wrong defaults found on clean install in forum_discussions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: Database SQL/XMLDB
    • Labels:
      None
    • Environment:
      pg 8.3
    • Database:
      PostgreSQL
    • Affected Branches:
      MOODLE_20_STABLE

      Description

      1/ Run clean install from cvshead
      2/ Run check defaults script.
      3/ Table: forum_discussions. Field: groupid, Expected '-1' Actual '(-1)'

      ALTER TABLE mdl_forum_discussions ADD groupid_alter_column_tmp BIGINT;
      UPDATE mdl_forum_discussions SET groupid_alter_column_tmp = groupid;
      ALTER TABLE mdl_forum_discussions DROP COLUMN groupid;
      ALTER TABLE mdl_forum_discussions RENAME COLUMN groupid_alter_column_tmp TO groupid;
      ALTER TABLE mdl_forum_discussions ALTER COLUMN groupid SET DEFAULT -1;
      ALTER TABLE mdl_forum_discussions ALTER COLUMN groupid SET NOT NULL;

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: