projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reste der Tabellen "rma" und "rmaitems" entfernt
[kivitendo-erp.git]
/
sql
/
Pg-upgrade2
/
acc_trans_id_uniqueness.pl
diff --git
a/sql/Pg-upgrade2/acc_trans_id_uniqueness.pl
b/sql/Pg-upgrade2/acc_trans_id_uniqueness.pl
index
9c0c459
..
1b8e5ca
100644
(file)
--- a/
sql/Pg-upgrade2/acc_trans_id_uniqueness.pl
+++ b/
sql/Pg-upgrade2/acc_trans_id_uniqueness.pl
@@
-47,10
+47,10
@@
SQL
do_query($query, 0);
do_query($query, 0);
- my %
entries_by_trans_id
;
+ my %
skipped_acc_trans_ids
;
foreach my $entry (@entries) {
foreach my $entry (@entries) {
- if (!$
entries_by_trans_id{ $entry->{
trans_id} }) {
- $
entries_by_trans_id{ $entry->{trans_id} } = []
;
+ if (!$
skipped_acc_trans_ids{ $entry->{acc_
trans_id} }) {
+ $
skipped_acc_trans_ids{ $entry->{acc_trans_id} } = 1
;
} else {
my $mtime = $entry->{mtime} ? "= '$entry->{mtime}'" : 'IS NULL';
$query = <<SQL;
} else {
my $mtime = $entry->{mtime} ? "= '$entry->{mtime}'" : 'IS NULL';
$query = <<SQL;