summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorivan <ivan>2002-04-20 06:33:03 +0000
committerivan <ivan>2002-04-20 06:33:03 +0000
commita649afbc9becb88b8ec516db2d5634cd45847c96 (patch)
tree10509038c7846bf112ee1034bd510281c2bb982b /bin
parente5f29642854dbdb606aa5763213e944ca449fc8a (diff)
fixup fs-setup
Diffstat (limited to 'bin')
-rwxr-xr-xbin/fs-setup9
1 files changed, 6 insertions, 3 deletions
diff --git a/bin/fs-setup b/bin/fs-setup
index 211c73fd2..37ecf1b87 100755
--- a/bin/fs-setup
+++ b/bin/fs-setup
@@ -1,6 +1,6 @@
#!/usr/bin/perl -Tw
#
-# $Id: fs-setup,v 1.88 2002-04-16 22:52:14 ivan Exp $
+# $Id: fs-setup,v 1.89 2002-04-20 06:33:03 ivan Exp $
#to delay loading dbdef until we're ready
BEGIN { $FS::Record::setup_hack = 1; }
@@ -162,7 +162,9 @@ foreach $attribute (@check_attributes) {
#create history tables (false laziness w/create-history-tables)
foreach my $table ( grep { ! /^h_/ } $dbdef->tables ) {
- my $tableobj = $dbdef->table($table);
+ my $tableobj = $dbdef->table($table)
+ or die "unknown table $table";
+
my $h_tableobj = DBIx::DBSchema::Table->new( {
name => "h_$table",
primary_key => 'historynum',
@@ -383,6 +385,7 @@ sub tables_hash_hack {
],
'primary_key' => 'eventnum',
#no... there are retries now #'unique' => [ [ 'eventpart', 'invnum' ] ],
+ 'unique' => [],
'index' => [ ['invnum'], ['status'] ],
},
@@ -932,7 +935,7 @@ sub tables_hash_hack {
'exportsvcnum' => 'int', '', '',
'exportnum' => 'int', '', '',
'svcpart' => 'int', '', '',
- ]
+ ],
'primary_key' => 'exportsvcnum',
'unique' => [ [ 'exportnum', 'svcpart' ] ],
'index' => [ [ 'exportnum' ], [ 'svcpart' ] ],