use base qw( FS::Record );
use strict;
+use FS::UID qw( dbh );
#use FS::Record qw( qsearch qsearchs );
use FS::CurrentUser;
=back
+=item pid
+
+=back
+
=head1 METHODS
=over 4
'path' => $path,
'_date' => time,
'render_seconds' => $render_seconds,
+ 'pid' => $$,
} );
+ #so we can still log pages after a transaction-aborting SQL error (and then
+ # show the # error page)
+ local($FS::UID::dbh) = dbh->clone;
+ #if current transaction is aborted (if we had a way to check for it)
+
my $error = $self->insert;
die $error if $error;
|| $self->ut_text('path')
|| $self->ut_number('_date')
|| $self->ut_numbern('render_seconds')
+ || $self->ut_numbern('pid')
;
return $error if $error;
=back
+=cut
+
+sub _upgrade_schema {
+ my ($class, %opts) = @_;
+
+ my $sql = 'DROP TABLE IF EXISTS h_access_user_log';
+
+ my $sth = dbh->prepare($sql) or die dbh->errstr;
+ $sth->execute or die $sth->errstr;
+}
+
=head1 BUGS
=head1 SEE ALSO