Bugzilla – Attachment 12481 Details for
Bug 8798
Add the use of DBIx::Class
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
SIGNED-OFF-Bug-8798-Add-the-use-of-DBIx-Class-Rename
0002-SIGNED-OFF-Bug-8798-Add-the-use-of-DBIx-Class-Rename.patch (text/plain), 2.75 KB, created by
wajasu
on 2012-09-24 17:03:25 UTC
(
hide
)
Description:
SIGNED-OFF-Bug-8798-Add-the-use-of-DBIx-Class-Rename
Filename:
MIME Type:
Creator:
wajasu
Created:
2012-09-24 17:03:25 UTC
Size:
2.75 KB
patch
obsolete
>From 97822f84cc4302ddb76939c623f769919bb72dd7 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Fri, 21 Sep 2012 12:16:04 -0400 >Subject: [PATCH 2/2] [SIGNED-OFF] Bug 8798 - Add the use of DBIx::Class - > Rename schema class updater > >updateDatabase.pl is a bit too close to updatedatabase.pl in installer >and may cause some confusion. I would suggest update_dbix_class_files.pl >as a unambiguous and descriptive name for this file. > >Signed-off-by: wajasu <matted-34813@mypacks.net> >--- > misc/devel/updateDatabase.pl | 28 ---------------------------- > misc/devel/update_dbix_class_files.pl | 28 ++++++++++++++++++++++++++++ > 2 files changed, 28 insertions(+), 28 deletions(-) > delete mode 100755 misc/devel/updateDatabase.pl > create mode 100755 misc/devel/update_dbix_class_files.pl > >diff --git a/misc/devel/updateDatabase.pl b/misc/devel/updateDatabase.pl >deleted file mode 100755 >index 83ac357..0000000 >--- a/misc/devel/updateDatabase.pl >+++ /dev/null >@@ -1,28 +0,0 @@ >-#!/usr/bin/perl >- >-use strict; >-use warnings; >-use C4::Context; >-use DBIx::Class::Schema::Loader qw/ make_schema_at /; >-use Getopt::Long; >- >-my $path = "./"; >-GetOptions( >- "path=s" => \$path, >- ); >-my $context = new C4::Context; >-my $db_driver; >-if ($context->config("db_scheme")){ >- $db_driver=C4::Context->db_scheme2dbi($context->config("db_scheme")); >-}else{ >- $db_driver="mysql"; >-} >- >- >-my $db_name = $context->config("database"); >-my $db_host = $context->config("hostname"); >-my $db_port = $context->config("port") || ''; >-my $db_user = $context->config("user"); >-my $db_passwd = $context->config("pass"); >- >-make_schema_at("Koha::Schema", {debug => 1, dump_directory => $path}, ["DBI:$db_driver:dbname=$db_name;host=$db_host;port=$db_port",$db_user, $db_passwd ]); >diff --git a/misc/devel/update_dbix_class_files.pl b/misc/devel/update_dbix_class_files.pl >new file mode 100755 >index 0000000..83ac357 >--- /dev/null >+++ b/misc/devel/update_dbix_class_files.pl >@@ -0,0 +1,28 @@ >+#!/usr/bin/perl >+ >+use strict; >+use warnings; >+use C4::Context; >+use DBIx::Class::Schema::Loader qw/ make_schema_at /; >+use Getopt::Long; >+ >+my $path = "./"; >+GetOptions( >+ "path=s" => \$path, >+ ); >+my $context = new C4::Context; >+my $db_driver; >+if ($context->config("db_scheme")){ >+ $db_driver=C4::Context->db_scheme2dbi($context->config("db_scheme")); >+}else{ >+ $db_driver="mysql"; >+} >+ >+ >+my $db_name = $context->config("database"); >+my $db_host = $context->config("hostname"); >+my $db_port = $context->config("port") || ''; >+my $db_user = $context->config("user"); >+my $db_passwd = $context->config("pass"); >+ >+make_schema_at("Koha::Schema", {debug => 1, dump_directory => $path}, ["DBI:$db_driver:dbname=$db_name;host=$db_host;port=$db_port",$db_user, $db_passwd ]); >-- >1.7.12.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 8798
:
12403
|
12405
|
12429
|
12439
|
12442
|
12443
|
12453
|
12477
|
12478
|
12480
|
12481
|
12506
|
12520
|
12521
|
12538
|
17581
|
17582
|
17583
|
17584
|
17585
|
17586
|
19134
|
19137
|
19138
|
19139
|
19140
|
19141
|
19248
|
19249
|
19250
|
19251