]> git.koha-community.org Git - koha.git/commit
Bug 32334: Add sync_db_comments script
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Wed, 23 Nov 2022 12:19:35 +0000 (13:19 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 12 Apr 2023 14:21:57 +0000 (11:21 -0300)
commitbe83a522985673b86b69e3a93bab605834a41492
treec05da9037268f5caf7119c78cdc27bf561b2ab76
parent10dfc7d1ae086f7e097e0bc8fda5f53f248afea1
Bug 32334: Add sync_db_comments script

Test plan:
[1] Backup your database, if not done already.
[2] Check output of dry_run when clearing a table:
    misc/maintenance/sync_db_comments.pl -clear -table items -dry
[3] Save output of misc/devel/update_dbix_class_files before changing
    comments in order to compare later. (Commit your changes.)
    You may not have changes after running (at least on a fresh
    database). That's fine.
[4] Clear all comments:
    misc/maintenance/sync_db_comments.pl -clear
[5] Renumber all comments:
    misc/maintenance/sync_db_comments.pl -renum
[6] Reset all comments to schema. Make sure that script finds your
    structure in installer/data/mysql folder.
    misc/maintenance/sync_db_comments.pl -reset
[7] Run update_dbix_class_files again and inspect changes as compared
    to previous run.
    Can you explain them? You should only see changes related to
    column comments. If you did not have changes in step 3, you
    should not have them here too.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
misc/maintenance/sync_db_comments.pl [new file with mode: 0755]