projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
doc
[freeside.git]
/
FS
/
FS
/
access_user_log.pm
diff --git
a/FS/FS/access_user_log.pm
b/FS/FS/access_user_log.pm
index
563f3ce
..
552dd2a
100644
(file)
--- a/
FS/FS/access_user_log.pm
+++ b/
FS/FS/access_user_log.pm
@@
-53,6
+53,10
@@
_date
=back
=back
+=item pid
+
+=back
+
=head1 METHODS
=over 4
=head1 METHODS
=over 4
@@
-84,6
+88,7
@@
sub insert_new_path {
'path' => $path,
'_date' => time,
'render_seconds' => $render_seconds,
'path' => $path,
'_date' => time,
'render_seconds' => $render_seconds,
+ 'pid' => $$,
} );
#so we can still log pages after a transaction-aborting SQL error (and then
} );
#so we can still log pages after a transaction-aborting SQL error (and then
@@
-127,6
+132,7
@@
sub check {
|| $self->ut_text('path')
|| $self->ut_number('_date')
|| $self->ut_numbern('render_seconds')
|| $self->ut_text('path')
|| $self->ut_number('_date')
|| $self->ut_numbern('render_seconds')
+ || $self->ut_numbern('pid')
;
return $error if $error;
;
return $error if $error;
@@
-135,6
+141,17
@@
sub check {
=back
=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
=head1 BUGS
=head1 SEE ALSO