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

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

    XMLWordPrintable

Details

    • Improvement
    • Status: Unverified Fix (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.0.9
    • 3.0.10-RC1
    • Update system
    • None
    • 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

              bantu Andreas Fischer
              D@ve Dave Remmel [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: