bz19779: Preserve triggers when upgrading a database