Changeset 1312 for branches


Ignore:
Timestamp:
04/02/15 15:48:01 (9 years ago)
Author:
nanardon
Message:

merge irev changes from trunk

Location:
branches/4.0/LATMOS-Accounts
Files:
3 edited

Legend:

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

    r1299 r1312  
    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}, 
  • branches/4.0/LATMOS-Accounts/bin/la-sql-upgrade.in

    r1225 r1312  
    202202            ALTER TABLE revaliases ADD COLUMN description text; 
    203203            }, 
    204         ], 
    205     }, 
    206     { 
    207         ver => 7, 
    208         sql => [ 
    209204            q{ 
    210205            CREATE OR REPLACE FUNCTION group_sort_fields() 
     
    259254        ], 
    260255    }, 
    261  
     256    { 
     257        ver => 8, 
     258        sql => [ 
     259            q{ 
     260            CREATE TABLE objectslogs 
     261            ( 
     262              logkey SERIAL NOT NULL, 
     263              ikey bigint NOT NULL, 
     264              irev bigint, 
     265              otype text NOT NULL, 
     266              name text NOT NULL, 
     267              changetype text NOT NULL, 
     268              username text NOT NULL, 
     269              message text NOT NULL, 
     270              logdate timestamp with time zone NOT NULL DEFAULT now(), 
     271              CONSTRAINT objectlogs_pkey PRIMARY KEY (logkey) 
     272            );}, 
     273            q{ 
     274            CREATE INDEX objectlogs_name_idx 
     275              ON objectslogs 
     276              USING btree 
     277              (name); 
     278            }, 
     279            q{ 
     280            CREATE INDEX objectslogs_ikey_idx 
     281              ON objectslogs 
     282              USING btree 
     283              (ikey); 
     284            }, 
     285            q{ 
     286            CREATE INDEX objectslogs_otype_idx 
     287              ON objectslogs 
     288              USING btree 
     289              (otype); 
     290            } 
     291        ], 
     292    }, 
    262293); 
    263294 
  • branches/4.0/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql.pm

    r1310 r1312  
    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.