-
Notifications
You must be signed in to change notification settings - Fork 64
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
[Migration] Change column type use change_type
not change the optional of column?
#1039
Comments
I had a quick look at it but I'm kinda perplexed on how to proceed.
I'll try having a look at it. |
Yeah, this is a tricky one. What are you thinking for a new statement? |
mmmh... that's an even-trickier one, now that I'm double-checking.
Is there a reason for which the change_default is separated from the other changes? |
We had them split up just for the sake of safety in that it was doing a single operation so you always knew what was happening. When you start adding more options, there's a higher chance of screwing it up like meaning to do one thing but forgetting an option. Like for example, if the method doesn't require passing in I'm not completely opposed to merging them. Or maybe making a new method that's all encompassing while still leaving the separate options? |
I see your point, and it's a pretty valid one :)
|
Following is one file script.
As you can see, i change my
number
column fromInt32?
intoFloat64, precision: 10, scale: 5
, but underneath, this column still optional.Thanks.
The text was updated successfully, but these errors were encountered: