I have an RPM whose software recently had its database schema completely redesigned. The current version (We'll call it B.0) is incompatible with older versions of the database schema.
Fortunately it's still in beta, and since it's not officially released I'd like to avoid writing any database migration scripts unless (and until) it actually becomes necessary to do so.
An upgrade will fail, because the (new) database schema creation happens in a scriptlet that is never run during an Upgrade, which puts the application in a bad state. If A.x is installed, I want them to erase and re-install.
I have found RPM's "Conflicts" tag, which does seem to do the job, but the error message is misleading "file ____ conflicts with file from package A.x" and someone with enough savvy might try to Upgrade and replace conflicts, which isn't useful as the required scriptlets to create the database still won't be run.
Is it possible to print a more descriptive error message when this Conflict occurs? Is there a "right way to do this" alternative?