dbaccess/source/core/dataaccess/datasource.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit b68805a896f9bb60d70edd1918bd7acacd56de73 Author: Tamas Bunth <tamas.bu...@collabora.co.uk> Date: Sun Jun 17 18:53:50 2018 +0200 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 <btom...@gmail.com> diff --git a/dbaccess/source/core/dataaccess/datasource.cxx b/dbaccess/source/core/dataaccess/datasource.cxx index 4f1bb6d477be..ffede28483a6 100644 --- a/dbaccess/source/core/dataaccess/datasource.cxx +++ b/dbaccess/source/core/dataaccess/datasource.cxx @@ -596,7 +596,14 @@ Reference< XConnection > ODatabaseSource::buildLowLevelConnection(const OUString bNeedMigration = aWarnDlg.run() == RET_OK; } 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"; + } } #endif _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits