Kaydet (Commit) b68805a8 authored tarafından Tamas Bunth's avatar Tamas Bunth Kaydeden (comit) Tamás Bunth

Back up content.xml when migrating database

Change-Id: I4eacbf689989d20142c04dc8fe586d0054c46350
Reviewed-on: https://gerrit.libreoffice.org/55962
Tested-by: Jenkins
Reviewed-by: 's avatarTamás Bunth <btomi96@gmail.com>
üst 276a0f01
...@@ -596,7 +596,14 @@ Reference< XConnection > ODatabaseSource::buildLowLevelConnection(const OUString ...@@ -596,7 +596,14 @@ Reference< XConnection > ODatabaseSource::buildLowLevelConnection(const OUString
bNeedMigration = aWarnDlg.run() == RET_OK; bNeedMigration = aWarnDlg.run() == RET_OK;
} }
if (bNeedMigration) if (bNeedMigration)
{
// back up content xml file if migration was successfull
Reference<XStorage> xRootStorage = m_pImpl->getOrCreateRootStorage();
xRootStorage->copyElementTo("content.xml", xRootStorage,
"content_before_migration.xml");
m_pImpl->m_sConnectURL = "sdbc:embedded:firebird"; m_pImpl->m_sConnectURL = "sdbc:embedded:firebird";
}
} }
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment