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

Use ALTER statement for dropping and renaming colmuns #887

Open
1 task
Kyrela opened this issue Jun 20, 2024 · 0 comments
Open
1 task

Use ALTER statement for dropping and renaming colmuns #887

Kyrela opened this issue Jun 20, 2024 · 0 comments
Labels
enhancement A feature that exists, works as intended but needs to be improved feature request A feature that does not yet exist but will be a good addition to the library

Comments

@Kyrela
Copy link
Contributor

Kyrela commented Jun 20, 2024

Describe the feature as you'd like to see it

Use the actual ALTER TABLE RENAME COLUMN and ALTER TABLE DROP COLUMN in the PostgresPlatform. Also, creating a temporary colmun instead of a whole temporary table when editing a colmun seems simpler, safer and might be a great addition.

What do we currently have to do now?

Create a new temporary table containing the new modified colmuns, dropping the original one, and re-creating it.

Additional context

See the actual implementation and the official documentation

  • Is this a breaking change?
@Kyrela Kyrela added enhancement A feature that exists, works as intended but needs to be improved feature request A feature that does not yet exist but will be a good addition to the library labels Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A feature that exists, works as intended but needs to be improved feature request A feature that does not yet exist but will be a good addition to the library
Projects
None yet
Development

No branches or pull requests

1 participant