Alter columns change type (redshift-dialect) with auto generate command . #1042
Unanswered
Steff94190
asked this question in
Usage Questions
Replies: 1 comment 2 replies
-
hi - the sequence you deseribe is supported by Alembic batch mode . All of the "rename table" / "select into" stuff is fully implemented already. hope this helps. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All,
I have some use case when I have to alter type of one or many column on table (with redshift dialect).
In redshift we can't directly user something like this
ALTER TABLE table_name ALTER COLUMN column_name datatype;
.We need to do something like
I wrote a script that works when one column change (modify_nullabe or modify_type)
python Script:
Result with one column (
id
) change:Result is good. but when I change many column (
id
andapi
) I have something like thisI want the same result like previous result.
Do you have an idea ?
thank you
Beta Was this translation helpful? Give feedback.
All reactions