Skip to content

Commit

Permalink
Merging commit 6076 from trunk
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.code.sf.net/p/ledger-smb/code/branches/1.3@6077 4979c152-3d1c-0410-bac9-87ea11338e46
  • Loading branch information
einhverfr committed Sep 24, 2013
1 parent 85d1ba6 commit e7ff2ff
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ Brian Wolf < brian @ activustech.com > has contributed bug reports.
Berend Tober < btober @ ieee.org > has contributed some to the
documentation.

Ward Vandewege [email redacted] has contributed some bug fixes to LedgerSMB database management and migration scripts.


Original Authors of SQL-Ledger:
===================================
Dieter Simader <dsimader @ sql-ledger.com>
Expand Down
1 change: 1 addition & 0 deletions Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Changelog for 1.3.35
* Fixed unable to edit quotation.tex (Chris T, 885)
* Silenced warnings in Num2Text (Chris T)
* Fixed blank weights sometimes making invoices unprintable (Chris T)
* Fixed some bugs with SL2.8 to LedgerSMB upgrades (Chris T)

Chris T is Chris Travers
Nick P is Nick Prater
Expand Down
5 changes: 2 additions & 3 deletions LedgerSMB/Database.pm
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,8 @@ sub get_info {
$sth->execute('version');
if (my $ref = $sth->fetchrow_hashref('NAME_lc')){
$retval->{appname} = 'sql-ledger';
$retval->{full_version} = $ref->{fldname};
$retval->{version} = $ref->{fldname};
$retval->{full_version} = $ref->{fldvalue};
$retval->{version} = $ref->{fldvalue};
$retval->{version} =~ s/(\d+\.\d+).*/$1/g;
} else {
$retval->{appname} = 'unknown';
Expand Down Expand Up @@ -623,7 +623,6 @@ sub lsmb_info {
users);
my $retval = {};
my $qtemp = 'SELECT count(*) FROM TABLE';
my $dbh =
my $dbh = DBI->connect(
"dbi:Pg:dbname=$self->{company_name}",
$self->{username}, $self->{password},
Expand Down
6 changes: 5 additions & 1 deletion sql/upgrade/sl2.8-1.3.sql
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,11 @@ INSERT INTO audittrail(trans_id, tablename, reference, formname, action,
INSERT INTO user_preference(id)
SELECT id from users;

INSERT INTO recurring SELECT * FROM sl28.recurring;
INSERT INTO recurring(id, reference, startdate, nextdate, enddate, repeat,
unit, howmany, payment)
SELECT id, reference, startdate, nextdate, enddate, repeat,
unit, howmany, payment
FROM sl28.recurring;

INSERT INTO recurringemail SELECT * FROM sl28.recurringemail;

Expand Down

0 comments on commit e7ff2ff

Please sign in to comment.