/[BackupPC]/trunk/bin/BackupPC_updatedb
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/bin/BackupPC_updatedb

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 234 by dpavlin, Fri Oct 14 14:02:52 2005 UTC revision 235 by dpavlin, Thu Nov 10 15:07:10 2005 UTC
# Line 350  if ($opt{c}) { Line 350  if ($opt{c}) {
350                          iso_size bigint default -1                          iso_size bigint default -1
351                  );                  );
352    
353                    create table backup_parts (
354                            id serial,
355                            backup_id int references backups(id),
356                            part_nr int not null check (part_nr > 0),
357                            tar_size bigint not null check (tar_size > 0),
358                            size bigint not null check (size > 0),
359                            md5 text not null,
360                            items int not null check (items > 0),
361                            date timestamp default now(),
362                            primary key(id)
363                    );
364          });          });
365    
366          print "creating indexes: ";          print "creating indexes: ";
# Line 368  if ($opt{c}) { Line 379  if ($opt{c}) {
379                  files:size                  files:size
380                  archive:dvd_nr                  archive:dvd_nr
381                  archive_burned:archive_id                  archive_burned:archive_id
382                    backup_parts:backup_id,part_nr
383          )) {          )) {
384                  do_index($index);                  do_index($index);
385          }          }

Legend:
Removed from v.234  
changed lines
  Added in v.235

  ViewVC Help
Powered by ViewVC 1.1.26