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 for altering column constaints #919

Open
mieradi opened this issue Nov 24, 2022 · 1 comment
Open

Support for altering column constaints #919

mieradi opened this issue Nov 24, 2022 · 1 comment
Labels
c: feature Request for new feature s: awaiting more info Additional information are requested

Comments

@mieradi
Copy link

mieradi commented Nov 24, 2022

Altering constraints on a specific column would be very handy. If i have missed a way to do it in the current version, please let me know.

Something like this would be great.

pgm.alterConstaints(tablename, columnname, {
    unique: false,
    references: "referencename"
  });
@Shinigami92 Shinigami92 added the c: feature Request for new feature label May 2, 2024
@Shinigami92
Copy link
Collaborator

@mieradi Can you elaborate a bit more what you want?

Please provide some SQL examples that should be covered.

When I look into the PostgreSQL documentation, currently ALTER CONSTRAINT does not support e.g. unique and so on 🤔
https://www.postgresql.org/docs/current/sql-altertable.html#SQL-ALTERTABLE-DESC-ALTER-CONSTRAINT

@Shinigami92 Shinigami92 added the s: awaiting more info Additional information are requested label May 2, 2024
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 s: awaiting more info Additional information are requested
Projects
None yet
Development

No branches or pull requests

2 participants