Software Freedom Law Center

Changeset 119

Show
Ignore:
Timestamp:
06/02/08 13:25:41 (5 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/ChangeLog

    r53 r119  
     12008-06-02  Bradley M. Kuhn  <bkuhn@ebb.org> 
     2 
     3        * Scripts/create-db.plx: Wrote script. 
     4 
     5        * Modules/SFLC/TimeTracker/DB.pm (XXXDONOTUSE__CLEAR_ALL_ITEMS): 
     6        Turned this function into an actual "create database" function. 
     7 
    182008-03-04  Bradley M. Kuhn  <bkuhn@softwarefreedom.org> 
    29 
  • 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