Menu

#1319 (ok 4.0.0-beta3) Permit to create index when creating foreign key

Needs_decision
fixed
1
2013-06-11
2011-07-22
No

It is required to have index prior to creating foreign key. phpMyAdmin currently offers only fields which do have foreign key. Instead it should offer all fields and automatically create index when necessary.

Discussion

  • Marc Delisle

    Marc Delisle - 2011-07-22

    You mean create a non-unique index? Because we can't for sure create a unique one.

    I believe that we should ask the user to confirm this creation.

     
  • Michal Čihař

    Michal Čihař - 2011-07-22

    Yes, probably confirmation is needed and maybe should offer choice for index type.

     
  • Marc Delisle

    Marc Delisle - 2011-07-22

    Good point; however there are options that a user might want (for example setting the size for each column in the index) so we'll have to see how much flexibility we offer to the user.

     
  • Michal Čihař

    Michal Čihař - 2011-08-02

    I'd keep this just as a convenience shortcut not offering much flexibility.

     
  • Anders Lindén

    Anders Lindén - 2011-09-06

    I like the idea. A missing feature.

     
  • Mohamed Ashraf

    Mohamed Ashraf - 2013-03-19

    so do you want to redirect to another page to do the index or do you want to add the option on the current page and execute it in the current page.

     
  • Marc Delisle

    Marc Delisle - 2013-03-19

    In the current page would be fine.

     
  • Mohamed Ashraf

    Mohamed Ashraf - 2013-03-21

    I did the feature request and submitted a pull request here https://github.com/phpmyadmin/phpmyadmin/pull/215

     
  • Marc Delisle

    Marc Delisle - 2013-03-21
    • labels: Relations,Comments,History,... --> Relations, Comments, History, ...
    • summary: Automatically create index when creating foreign key --> (ok 4.0.0-beta3) Permit to create index when creating foreign key
    • status: open --> open-fixed
    • assigned_to: Marc Delisle
    • milestone: --> Needs_decision
    • priority: 5 --> 1
     
  • Michal Čihař

    Michal Čihař - 2013-05-09
    • Status: open-fixed --> closed-fixed
     
  • Michal Čihař

    Michal Čihař - 2013-06-11
    • Status: closed-fixed --> fixed
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.