diff options
author | ivan <ivan> | 2009-02-24 10:00:49 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-02-24 10:00:49 +0000 |
commit | 6f200fd174151649b99130938d5b65dfa035f89e (patch) | |
tree | 670861df913ef1f7e4127d3c0c5f3375c9e7c4dd | |
parent | 50af7897706e41b23ea9fd6835265ec530d92af4 (diff) |
bootstrapping issues, aaargh
-rw-r--r-- | FS/FS/Setup.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/FS/FS/Setup.pm b/FS/FS/Setup.pm index 2dc90385d..d87668c15 100644 --- a/FS/FS/Setup.pm +++ b/FS/FS/Setup.pm @@ -158,11 +158,17 @@ sub populate_initial_data { my @records = @{ $data->{$table} }; foreach my $record ( @records ) { + my $args = delete($record->{'_insert_args'}) || []; my $object = $class->new( $record ); my $error = $object->insert( @$args ); die "error inserting record into $table: $error\n" if $error; + + my $pkey = $object->primary_key; + my $pkeyvalue = $object->$pkey(); + warn " inserted $pkeyvalue\n"; + } } |