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

Support ALTER INDEX expressions (or the same thing in ALTER TABLE) #1178

Open
osdiab opened this issue May 30, 2024 · 2 comments
Open

Support ALTER INDEX expressions (or the same thing in ALTER TABLE) #1178

osdiab opened this issue May 30, 2024 · 2 comments
Labels
c: feature Request for new feature good first issue Good for newcomers p: 1-normal Nothing urgent

Comments

@osdiab
Copy link
Collaborator

osdiab commented May 30, 2024

Description

Postgres allows a variety of alterations to be made to indexes but I can't find a built in way to do it with this library (can do it with pgm.sql() though).

Suggested solution

Create an interface for these, or support the equivalent commands in alterTable()

Alternative

No response

Additional context

I wanted to rename an index but then realized it wasn't there.

@osdiab osdiab added the s: pending triage Pending Triage label May 30, 2024
@Shinigami92 Shinigami92 added c: feature Request for new feature good first issue Good for newcomers p: 1-normal Nothing urgent and removed s: pending triage Pending Triage labels May 30, 2024
@Shinigami92
Copy link
Collaborator

Yeah, I see
Are you up for making a PR?
Start at least with the more simple one src/operations/indexes/renameIndex.ts

@osdiab
Copy link
Collaborator Author

osdiab commented May 31, 2024

I'll try to make time! Will comment here when I start working on a part of it, if I'm silent I haven't started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: feature Request for new feature good first issue Good for newcomers p: 1-normal Nothing urgent
Projects
None yet
Development

No branches or pull requests

2 participants