Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-10327

Use "ALTER TABLE ... ADD INDEX" instead of "CREATE INDEX"

    Details

    • Type: Improvement
    • Status: Unverified Fix
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.9
    • Fix Version/s: 3.0.10-RC1
    • Component/s: Update system
    • Labels:
      None
    • Environment:
      Several Linux distributions

      Description

      Time and again I have problems with updating the board because on some servers the default DB user doesn't have the permission for the CREATE INDEX Command (don't know why).

      Current statement:
      CREATE INDEX att_ip ON phpbb_login_attempts(attempt_ip, attempt_time)

      Better:
      ALTER TABLE `phpbb_login_attempts` ADD INDEX `att_ip` ( `attempt_ip` , `attempt_time` )

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bantu Andreas Fischer
                Reporter:
                D@ve Dave Remmel
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: