Plugin Developer Discussion

Discussion for FogBugz Plugin developers

Feature request: DB schema validation after upgrade

While playing around with the database API, I came across the situation where a column was not updated as per schema. This is correctly documented in the API and therefore by design:

"Note: Changing the definition of a column will not take effect by default. Instead, use the CDatabaseUpgradeApi provided in the DatabaseUpgradeBefore and DatabaseUpgradeAfter methods to explicitly alter existing columns."

However, it may help me as plugin developer if the schema got verified after the DatabaseUpgradeAfter is performed, making sure that my manual steps did perform the correct column changes.
Arsène von Wyss Send private email
Thursday, December 3, 2009
 
 
Hi Arsène-
Good point, and I have opened a bug for this. How do you envision the user being notified?
Thanks!
Brett
Brett Kiefer Send private email
Thursday, December 3, 2009
 
 
I think that a global notification (just like when an exception occurs in the plugin) would make sense and fit the overall experience. How does that sound to you?
Arsène von Wyss Send private email
Thursday, December 3, 2009
 
 
That sounds reasonable. I'll add it to the case.
Thanks!
Brett
Brett Kiefer Send private email
Thursday, December 3, 2009
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
 
Powered by FogBugz