Best way to extend an existing Change (maybe a limitation)

Hello!


I need to extend AddColumn with an adicional field.


Why can’t I just create an AddColumnExtension extending AddColumn with my adicional field, and annotate class with the same @DatabaseChange with higher priority value?


Or do I have to extend AbstractChange and create another tag? Since I need some AddColumn information it limitate my needs.



Ok, I got it!


Since I am overriding AddColumn, it is inheriting getSerializedObjectNamespace which returns STANDARD_CHANGELOG_NAMESPACE enum. 


I solved my problem by overriding getSerializedObjectNamespace on my specialized class returning GENERIC_CHANGELOG_EXTENSION_NAMESPACE :slight_smile:

Glad you got it. Thanks for the update. I am working on improving the extension docs.


Nathan