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

Create one XMLDB option to analyse all the INTs within a DB

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 1.9
    • 1.7.3, 1.8.3, 1.9
    • Database SQL/XMLDB
    • None
    • Any MySQL & PostgreSQL server
    • MySQL, PostgreSQL
    • MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE
    • MOODLE_19_STABLE

      changing them to BIGINTs as necessary (when possible).

      From Moodle 1.7 all int(10) were changed to bigint(10) for new columns. These leave old sites with a mix of INTs and BIGINTs that should be normalized, to avoid losing any DB thought put performing unnecessary CASTS or SORT merges.

      Implement one utility within the XMLDB editor, able to iterate over all the int(10) columns, looking if they are correct BIGINTs or no.

      The utility won't perform any action against the DB but provide one SQL script to be executed by hand.

      Ciao

            stronk7 Eloy Lafuente (stronk7)
            stronk7 Eloy Lafuente (stronk7)
            Tim Hunt Tim Hunt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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