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

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

      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.

        1. patch
          3 kB
          Bruce Cota

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

              Created:
              Updated:
              Resolved:

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