Replies: 1 comment 2 replies
-
|
Hi
Why do you say it was ignored? it was released in version 1.17.2. If something else does not work, please open an issue with a reproducing case, thanks.
This would be a sqlalchemy feature. it seems that there is no issue it, so I created sqlalchemy/sqlalchemy#13212 |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have done some things on an existing database and other in yet managed database.
When a type is changed.
When I change types the default constraint is the most annoying part of the problem, indeed I open a Issue #1744, and post a patch but check for type changes to auto drop the default constraint but it was ignored, anyway I solve by forcing change of default value but was a headache in a large set of changes, anyway there is a lot more to do before a type change.
I have documented the process that works for me to know how to solve it and is the following.
1.1. Needs to be dropped before the alter column
1.2. Needs to be recreated after the alter column
2.1. Default constraints
2.2. Foreign keys
2.4. If enum with constraint checks
CK_prefix)To perform all this fixes, I suggest to reorder of the operations in the following order
To achieve some tasks I have done the following helper module (Includes drops associated keys only for the column)
mssql.py
Support for native JSON
(Issue request in #13212) SQL Server since 2025 (17.x) supports native JSON type
Hope this could contribute to a better software, any question are welcome.
PS: I have to mention and thanks to ChatLPO that allows me to post this suggestions based on the work in the company.
Beta Was this translation helpful? Give feedback.
All reactions