Skip to content

cats: remove remains of deprecated databases#1377

Merged
arogge merged 16 commits intobareos:masterfrom
alaaeddineelamri:dev/alaaeddineelamri/master/remove-mysql-sqlite-code
Feb 28, 2023
Merged

cats: remove remains of deprecated databases#1377
arogge merged 16 commits intobareos:masterfrom
alaaeddineelamri:dev/alaaeddineelamri/master/remove-mysql-sqlite-code

Conversation

@alaaeddineelamri
Copy link
Contributor

@alaaeddineelamri alaaeddineelamri commented Feb 13, 2023

Description

This PR removes all what remains of deprecated databases (MySql, SQLite, Ingres, DBI) from the codebase.

Please check

  • Short description and the purpose of this PR is present above this paragraph
  • Your name is present in the AUTHORS file (optional)

If you have any questions or problems, please give a comment in the PR.

Helpful documentation and best practices

Checklist for the reviewer of the PR (will be processed by the Bareos team)

Make sure you check/merge the PR using devtools/pr-tool to have some simple automated checks run and a proper changelog record added.

General
  • Is the PR title usable as CHANGELOG entry?
  • Purpose of the PR is understood
  • Commit descriptions are understandable and well formatted
  • Check backport line
Source code quality
  • Source code changes are understandable
  • Variable and function names are meaningful
  • Code comments are correct (logically and spelling)
  • Required documentation changes are present and part of the PR

@alaaeddineelamri alaaeddineelamri force-pushed the dev/alaaeddineelamri/master/remove-mysql-sqlite-code branch 2 times, most recently from f41673f to 7c5238d Compare February 13, 2023 11:26
@alaaeddineelamri alaaeddineelamri marked this pull request as draft February 13, 2023 18:01
@alaaeddineelamri alaaeddineelamri force-pushed the dev/alaaeddineelamri/master/remove-mysql-sqlite-code branch 15 times, most recently from 6f6111e to c6a1e63 Compare February 20, 2023 15:35
@alaaeddineelamri alaaeddineelamri force-pushed the dev/alaaeddineelamri/master/remove-mysql-sqlite-code branch 5 times, most recently from fd32ab8 to abfaac3 Compare February 23, 2023 16:52
@alaaeddineelamri alaaeddineelamri changed the title cats: remove remains of deprecated databases and remove dynamic backends cats: remove remains of deprecated databases Feb 23, 2023
@alaaeddineelamri alaaeddineelamri marked this pull request as ready for review February 24, 2023 09:31
Copy link
Member

@arogge arogge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should still mention that you can migrate a MySQL catalog to PostgreSQL using dbcopy from a specific Bareos version.

.. include:: Howtos/UseADummyDeviceToTestTheBackup.rst.inc
.. include:: Howtos/BackupOfThirdPartyDatabases.rst.inc
.. include:: Howtos/MigrateABareosCatalogFromMySqlToPostgresql.rst.inc
.. include:: Howtos/StatisticsCollection.rst.inc
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should not remove any reference on how to migrate from MySQL yet.

Comment on lines -367 to -370
One exception is when using a |mysql| Bareos catalog,
which have been removed with Bareos :sinceVersion:`21.0.0: MySQL backend removed`.
Therefore you first have to upgrade to Bareos 20 and migrate the |mysql| into a |postgresql| Bareos Catalog, see :ref:`section-MigrationMysqlToPostgresql`.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see my comment above, we should probably still mention that you may need to do this. Some people may still want upgrade from Bareos 16.2 (or something like that) to 22.

@arogge arogge added the removal this PR removes functionality label Feb 27, 2023
@alaaeddineelamri alaaeddineelamri force-pushed the dev/alaaeddineelamri/master/remove-mysql-sqlite-code branch from abfaac3 to 0c10f4a Compare February 27, 2023 13:42
Copy link
Member

@arogge arogge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, bareos-check-sources lists a lot of header's with wrong years in them.

@arogge arogge merged commit 7cec0e6 into bareos:master Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

removal this PR removes functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants