Remove explicit default value for not nullable columns#76
Remove explicit default value for not nullable columns#76rwasef1830 merged 1 commit intonpgsql:masterfrom
Conversation
|
@roji What do you think about this ? This constitutes a breaking change in behavior (not sending explicit default in create statements). |
|
I also think that provider must not add custom string to index names like here |
|
@rwasef1830 I'm OK with this change, really not sure what the original intention was behind this implicit default... While it's true that this is a breaking change, the impact is relatively limited since it's in migration SQL generation - so any migrations already generated will not be affected. Also, it seems like we should bump the version to 3.2.0, both because of the long wait from the previous minor release and also because of #41. So I vote to merge this for 3.2.0 - but I'm leaving the final call to you whether to merge or not. I'd be against changing the index naming though as later suggested. @rwasef1830, I made some version bumps and cleanup. Note that there are several failing tests at the moment: |
|
@xklonx Could you update the commit message since there is no configuration-related changes in the commit. Also could you add or update a unit test to reflect this change ? |
|
@rwasef1830 Fixed two tests, its ok now? |
|
@xklonx Could you squash both commits and set the the commit message to be the same as this pull request title then force push the branch ? Thanks for your contribution! |
|
@rwasef1830 done |
|
@roji whoops I think this got merged into master, should be in dev. Leave it ? |
|
@rwasef1830 can you please undo this merge to master (use |
|
@roji done. force pushed master. rebased to dev. pushed dev. |
System.Data.SqlClient never adds default when it is not setted.
CREATE TABLE "Project_Administrator"("Id" uuid NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000',
vs
CREATE TABLE [Project_Administrator] (
[Id] [uniqueidentifier] NOT NULL,