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

When I set $foreign_keys=true in in sql_generator.php, the ddl is not created.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Minor
    • None
    • 1.9.5
    • Database SQL/XMLDB
    • None
    • MySQL
    • MOODLE_19_STABLE

    Description

      It seems that , $foreign_keys = true in sql_generator.php, foreign keys are defined on each table immediately after the table is created, even if the referenced table has not yet been created. To get the foreign keys, I changed sql_generator.php to create all the foreign keys only after creating all of the tables. A diff is attached.

      Attachments

        Issue Links

          Activity

            People

              stronk7 Eloy Lafuente (stronk7)
              bcota@unicon.net Bruce Cota
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

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