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

Easier way to modify with changeColumn? #1947

Open
joshbmarshall opened this issue Jan 8, 2021 · 2 comments
Open

Easier way to modify with changeColumn? #1947

joshbmarshall opened this issue Jan 8, 2021 · 2 comments

Comments

@joshbmarshall
Copy link
Contributor

Hi, when changing a column, e.g. a new comment, default value or nullable yes/no we currently have to set all the attributes of the column.

Is there a way that we can just specify the attributes that change? Either through another function call e.g. changeColumnNull() or changeColumnComment() or by adding a flag to changeColumn() to indicate to start with the current column attributes and set only the options that have changed?

@dereuromark
Copy link
Member

Is this a duplicate of #1221 ?

@joshbmarshall
Copy link
Contributor Author

Very close, apologies the issue search did not find that one for me. I will look into using getColumn() as a workaround.

It would also be nice to not have to specify the field type. e.g. working with some pre-existing systems that have uncommon column types.

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

No branches or pull requests

2 participants