Back up content.xml when migrating database
Change-Id: I4eacbf689989d20142c04dc8fe586d0054c46350 Reviewed-on: https://gerrit.libreoffice.org/55962 Tested-by: Jenkins Reviewed-by: Tamás Bunth <btomi96@gmail.com>
This commit is contained in:
@@ -596,8 +596,15 @@ 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
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Reference in New Issue
Block a user