phpredmin icon indicating copy to clipboard operation
phpredmin copied to clipboard

Add drop-down with available databases for Move operation

Open eugef opened this issue 11 years ago • 6 comments

We have "Move" and "Move all" functionality for the keys.

I think it would be nice to have drop-down with available databases here instead of plain text field phpredmin move page phpredmin move popup

eugef avatar Feb 11 '14 17:02 eugef

Good idea

sasanrose avatar Feb 11 '14 19:02 sasanrose

This was one of my other purposes for setting max_databases. Never got around to doing it tho. I can get started on this once pull request for new modals #47 is resolved.

blitzmann avatar Feb 12 '14 18:02 blitzmann

Actually... You could move data to a database that has not been initialized yet. So really you can enter any number that is not above max_databases. Moving a key to a DB is one way I used when initializing my database through PHPRedmin before I added a Add DB thing...

Would a dropdown be good for this (I know we kinda discussed it and it's relasion to large number of databases before)? Or perhaps a radio button to choose between current DB and new DB, and change the dropdown options from there? Or a simple message saying what the max_databases is and to not select a integer higher than that?

blitzmann avatar Feb 12 '14 19:02 blitzmann

@blitzmann, you can't move key to the same DB, only to another

eugef avatar Feb 12 '14 19:02 eugef

True, I overlooked that. Still, you can move the key to any DB that is not the current and that is included in max_databases. Just need to decide to to present that information.

blitzmann avatar Feb 12 '14 19:02 blitzmann

Sorry guys. I had to take an IELTS exam. Thus, I needed to study :) Anyway, I believe it would be a better idea to just have a text input with validation.

sasanrose avatar Feb 18 '14 17:02 sasanrose