pg-schema-diff icon indicating copy to clipboard operation
pg-schema-diff copied to clipboard

Handle columns who use functions as defaults

Open the-glu opened this issue 9 months ago • 3 comments

Description

Detect and add as dependency functions that can be used as default.

I'm really not sure I'm not missing some locations where I should process the new DependsOnFunctions field, but it's working for my case ;)

Motivation

See #191 for the base case issue, where default value use functions ;)

Testing

Tested locally, tests yet to be added :)

the-glu avatar Feb 06 '25 16:02 the-glu

Hi @bplunkett-stripe

Just a gentle reminder about this PR, when you have a moment, could you please take a quick look?

Thanks a lot!

the-glu avatar Jun 17 '25 13:06 the-glu

@bplunkett-stripe is there anything preventing this from ending up in the tool? Not being able to modify columns that use functions as defaults is a fairly big limitations (at least in my use cases).

tonycosentini avatar Sep 01 '25 07:09 tonycosentini

@bplunkett-stripe is there anything preventing this from ending up in the tool? Not being able to modify columns that use functions as defaults is a fairly big limitations (at least in my use cases).

I'll prioritize getting this merged in.

bplunkett-stripe avatar Sep 01 '25 10:09 bplunkett-stripe