Changeset 24539 for trunk/Nebulous-Server/scripts/dirize.pl
- Timestamp:
- Jun 24, 2009, 11:20:15 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/Nebulous-Server/scripts/dirize.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/scripts/dirize.pl
r24521 r24539 44 44 # non-existant value 45 45 $db->do("SET FOREIGN_KEY_CHECKS=0"); 46 $db->do("UPDATE storage_object SET dir_id = 0");46 #$db->do("UPDATE storage_object SET dir_id = 0"); 47 47 48 48 # completely reset the directory table 49 $db->do("DELETE FROM directory");50 $db->do("ALTER TABLE directory AUTO_INCREMENT = 1");49 #$db->do("DELETE FROM directory"); 50 #$db->do("ALTER TABLE directory AUTO_INCREMENT = 1"); 51 51 # make sure these duplicates can't happen again 52 $db->do("alter table directory add unique key(dirname,parent_id)");52 #$db->do("alter table directory add unique key(dirname,parent_id)"); 53 53 # seed the root ('/') directory 54 $db->do("INSERT INTO directory VALUES(1, '/', 1)");54 #$db->do("INSERT INTO directory VALUES(1, '/', 1)"); 55 55 56 56 my $i = 0;
Note:
See TracChangeset
for help on using the changeset viewer.
