projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
systemd: start apache after postgresql
[freeside.git]
/
rt
/
etc
/
upgrade
/
split-out-cf-categories.in
diff --git
a/rt/etc/upgrade/split-out-cf-categories.in
b/rt/etc/upgrade/split-out-cf-categories.in
index
28ea309
..
b7b1b34
100644
(file)
--- a/
rt/etc/upgrade/split-out-cf-categories.in
+++ b/
rt/etc/upgrade/split-out-cf-categories.in
@@
-3,7
+3,7
@@
#
# COPYRIGHT:
#
#
# COPYRIGHT:
#
-# This software is Copyright (c) 1996-201
2
Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-201
9
Best Practical Solutions, LLC
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
@@
-46,18
+46,15
@@
# those contributions and any derivatives thereof.
#
# END BPS TAGGED BLOCK }}}
# those contributions and any derivatives thereof.
#
# END BPS TAGGED BLOCK }}}
+use 5.10.1;
use strict;
use warnings;
use lib "@LOCAL_LIB_PATH@";
use lib "@RT_LIB_PATH@";
use strict;
use warnings;
use lib "@LOCAL_LIB_PATH@";
use lib "@RT_LIB_PATH@";
-use RT;
-RT::LoadConfig();
-RT->Config->Set('LogToScreen' => 'debug');
-RT::Init();
-
-$| = 1;
+use RT::Interface::CLI qw(Init);
+Init();
$RT::Handle->BeginTransaction();
$RT::Handle->BeginTransaction();
@@
-168,4
+165,4
@@
while (my $cf = $CFs->Next ) {
}
$RT::Handle->Commit;
}
$RT::Handle->Commit;
-print "No custom fields with categories found\n" unless $seen;
\ No newline at end of file
+print "No custom fields with categories found\n" unless $seen;