IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24508


Ignore:
Timestamp:
Jun 19, 2009, 11:17:13 AM (17 years ago)
Author:
jhoblitt
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/scripts/dirize.pl

    r24461 r24508  
    4848# completely reset the directory table
    4949$db->do("DELETE FROM directory");
    50 $db->do("ALTER TABLE directiry AUTO_INCREMENT = 1");
     50$db->do("ALTER TABLE directory AUTO_INCREMENT = 1");
     51# make sure these duplicates can't happen again
     52$db->do("alter table directory add unique key(dirname,parent_id)");
    5153# seed the root ('/') directory
    52 $db->do("INSERT INTO directory VALUES(1, '/', 1");
     54$db->do("INSERT INTO directory VALUES(1, '/', 1)");
    5355
    5456my $i = 0;
     
    6668    $db->commit;
    6769    printf("### COMMIT ###\n");
    68     $query->finish;
     70    $work_query->finish;
    6971    printf("dirized $i\n");
    7072}
Note: See TracChangeset for help on using the changeset viewer.