Software Freedom Law Center

Show
Ignore:
Timestamp:
06/02/08 13:25:41 (7 months ago)
Author:
bkuhn
Message:

r158@hughes: bkuhn | 2008-06-02 13:25:16 -0400

  • I realized that there was not a proper create database script. I had
    started a create database function in DB.pm, but it was incomplete and
    generally only used for testing when you wanted to clear out the users.


Now that function properly creates a new empty database, and there is
a create-db.plx script as well that simply calls it.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/antimatter/tim/Modules/SFLC/TimeTracker/DB.pm

    r53 r119  
    13831383  $self->beginWriteWork('pending'); 
    13841384 
     1385  $self->{main}{categoryList} = { }; 
     1386  $self->{main}{categoryAliases} = { users => {}, GLOBAL => {} }; 
     1387  $self->{main}{categoryChanged} = time(); 
     1388 
     1389  foreach my $empty (qw/categoryList ids ignoreLines userConfig configs/) { 
     1390    $self->{main}{$empty} = {}; 
     1391  } 
     1392  foreach my $empty (qw/ignoreLines userConfig configs/) { 
     1393    $self->{main}{$empty}{users} = {}; 
     1394  } 
     1395 
     1396  $self->{pending}{configs}{users} = {}; 
     1397  $self->{pending}{ignoreLines}{users} = {}; 
     1398  $self->{pending}{interactionTrees} = {}; 
     1399 
    13851400  my(%u1, %u2); 
    13861401  foreach my $user (keys %{$self->{main}{entries}{byUser}}) { 

SFLC Main Page

[frdm] Support SFLC