Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-30799 META: Enable foreign keys in the database schema
  3. MDL-30801

New option $CFG->foreignkeys = NONE | SAFE | ALL in config.php

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Won't Do
    • Minor
    • None
    • 2.2
    • Database SQL/XMLDB
    • MOODLE_22_STABLE

    Description

      This would actually cause sql_generator to create the requested foreign keys.

      • NONE would be the default, at least for now.
      • SAFE would mean 'create the ones marked as safe' according to the new setting introduced in MDL-30800. Eventually, this might become the default for new installs.
      • ALL would be provided to make things easy for brave developers who want to see what will happen

      Since config.php is included early, these probably need to be string literals 'none', etc. Not really PHP constants.

      Attachments

        Activity

          People

            Unassigned Unassigned
            timhunt Tim Hunt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Clockify

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.