[predicates] keep making `yes` predicate importable from cubicweb (closes #2790319)
The `yes` predicate was moved out in CubicWeb 3.15 but it should have
remained importable from the cubicweb.predicates module, for bw compat
reasons and also because logilab.common.registry is an implementation
detail.
if repo.system_source.dbdriver == 'postgres':
sql('ALTER TABLE appears ADD COLUMN weight float')
sql('UPDATE appears SET weight=1.0 ')