I will resolve this situation like this:
I am adding the pt_leadership_rating table to the base database, and will replace the NULL in the primary key with "-1".
Then I will add "-1" as the default value in petra.xml for pm_short_term_application.pm_st_leadership_rating_c.
see my commit at bazaar.launchpad.net/tpokorra/o ... ision/1748
Generally, if we change a field from NULL to NOT NULL, it would be good to add a default value in petra.xml.