Bugzilla – Attachment 104927 Details for
Bug 25511
Add --force option to update_dbix_class_files.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25511: Add --force option to update_dbix_class_files.pl
Bug-25511-Add---force-option-to-updatedbixclassfil.patch (text/plain), 1.48 KB, created by
Ere Maijala
on 2020-05-15 10:05:50 UTC
(
hide
)
Description:
Bug 25511: Add --force option to update_dbix_class_files.pl
Filename:
MIME Type:
Creator:
Ere Maijala
Created:
2020-05-15 10:05:50 UTC
Size:
1.48 KB
patch
obsolete
>From ec3b6c703e88934c1d452b62edeee17c9d2863db Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 15 May 2020 10:51:46 +0100 >Subject: [PATCH] Bug 25511: Add --force option to update_dbix_class_files.pl > >This adds a --force option to the aforementioned script allowing those >in the know to overwrite the schema when changes above the found are >detected. > >Signed-off-by: Ere Maijala <ere.maijala@helsinki.fi> >--- > misc/devel/update_dbix_class_files.pl | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/misc/devel/update_dbix_class_files.pl b/misc/devel/update_dbix_class_files.pl >index 0c4a88eb64..ccf5f34b3a 100755 >--- a/misc/devel/update_dbix_class_files.pl >+++ b/misc/devel/update_dbix_class_files.pl >@@ -38,6 +38,7 @@ my $db_name; > my $db_user; > my $db_passwd; > my $koha_conf; >+my $force; > my $help; > > GetOptions( >@@ -49,6 +50,7 @@ GetOptions( > "db_user=s" => \$db_user, > "db_passwd=s" => \$db_passwd, > "koha-conf:s" => \$koha_conf, >+ "force" => \$force, > "h|help" => \$help > ); > >@@ -95,9 +97,11 @@ if (! defined $db_name ) { > pod2usage(1); > } else { > >+ $force //= 0; >+ > make_schema_at( > "Koha::Schema", >- { debug => 1, dump_directory => $path, preserve_case => 1 }, >+ { debug => 1, dump_directory => $path, preserve_case => 1, overwrite_modifications => $force }, > [ > "DBI:$db_driver:dbname=$db_name;host=$db_host;port=$db_port", > $db_user, >-- >2.17.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 25511
:
104926
|
104927
|
106495
|
107110