projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2029d39
)
add -c flag to skip cdr and h_cdr updates, RT#21464
author
Ivan Kohler
<ivan@freeside.biz>
Sun, 20 Oct 2013 05:55:16 +0000
(22:55 -0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Sun, 20 Oct 2013 05:55:16 +0000
(22:55 -0700)
FS/bin/freeside-upgrade
patch
|
blob
|
history
diff --git
a/FS/bin/freeside-upgrade
b/FS/bin/freeside-upgrade
index
893f5d4
..
6fbf39b
100755
(executable)
--- a/
FS/bin/freeside-upgrade
+++ b/
FS/bin/freeside-upgrade
@@
-155,9
+155,15
@@
unless ( driver_name =~ /^mysql/i ) {
}
if ( $opt_c ) {
+
@statements =
grep { $_ !~ /^ *ALTER +TABLE +(h_)?cdr /i }
@statements;
+
+ @statements =
+ grep { $_ !~ /^ *CREATE +INDEX +(h_)?cdr\d+ /i }
+ @statements;
+
}
if ( $DRY_RUN ) {