Changeset 1311 for trunk/LATMOS-Accounts


Ignore:
Timestamp:
04/02/15 15:43:23 (9 years ago)
Author:
nanardon
Message:

Add an irev column to SQL log

Location:
trunk/LATMOS-Accounts
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts/bin/la-sql-log

    r1296 r1311  
    5656 
    5757foreach(@logs) { 
    58     printf("%s %s: %s/%s (%d) %s\n", 
     58    printf("%s (%d), %s: %s/%s (%d) %s\n", 
    5959        $_->{logdate}, 
     60        $_->{irev} || -1, 
    6061        $_->{username}, 
    6162        $_->{otype}, 
  • trunk/LATMOS-Accounts/bin/la-sql-upgrade.in

    r1308 r1311  
    262262              logkey SERIAL NOT NULL, 
    263263              ikey bigint NOT NULL, 
     264              irev bigint, 
    264265              otype text NOT NULL, 
    265266              name text NOT NULL, 
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql.pm

    r1309 r1311  
    649649 
    650650    my $sth = $self->db->prepare(q{ 
    651         INSERT into objectslogs (ikey, otype, name, changetype, username, message) 
    652         VALUES (?,?,?,?,?,?) 
     651        INSERT into objectslogs (ikey, irev, otype, name, changetype, username, message) 
     652        VALUES (?,?,?,?,?,?,?) 
    653653        }); 
    654654 
    655655    $sth->execute( 
    656656        $ref, 
     657        $self->current_rev, 
    657658        $otype, 
    658659        $name, 
Note: See TracChangeset for help on using the changeset viewer.