Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow renaming database elements from table list #2171

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

azmy60
Copy link
Contributor

@azmy60 azmy60 commented Apr 30, 2024

Add an option to table list context menu to rename database elements. This includes:

  • renaming tables/views/schemas
  • disabling rename if the database doesn't support it
  • show errors if exists
  • confirmation modal using await this.$confirm (can't help but this needed improvements, even though it's not on the ticket lol)
  • copy to sql

close #2114

renaming_table

image

image

TODO:

  • Rename routines (blocked: automation tests don't like it. I'm only able to test this manually.)
  • Test cassandra
  • Renaming tables can be destructive. Put a warning notice.
  • refactor: we can put setElementName() just in BasicDatabaseClient

@azmy60 azmy60 marked this pull request as draft April 30, 2024 14:01
@azmy60 azmy60 marked this pull request as ready for review May 2, 2024 16:51
@azmy60 azmy60 requested a review from rathboma May 2, 2024 16:51
@rathboma
Copy link
Collaborator

rathboma commented May 8, 2024

@azmy60 Is this good for review? Looks like you still have some TODOs undone?

@azmy60
Copy link
Contributor Author

azmy60 commented May 10, 2024

@rathboma Yes. I was looking into the tests on renaming routines but somehow they don't work except when I tested it in app manually. It's good now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FEAT: Table renaming on right-click menu
2 participants