projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move from otaker to proper usernum FK
[freeside.git]
/
FS
/
FS
/
cust_attachment.pm
diff --git
a/FS/FS/cust_attachment.pm
b/FS/FS/cust_attachment.pm
index
9527381
..
8a39883
100644
(file)
--- a/
FS/FS/cust_attachment.pm
+++ b/
FS/FS/cust_attachment.pm
@@
-1,7
+1,7
@@
package FS::cust_attachment;
use strict;
package FS::cust_attachment;
use strict;
-use base qw( FS::Record );
+use base qw( FS::
otaker_Mixin FS::
Record );
use FS::Record qw( qsearch qsearchs );
use FS::Conf;
use FS::Record qw( qsearch qsearchs );
use FS::Conf;
@@
-44,9
+44,9
@@
Customer number (see L<FS::cust_main>).
The date the record was last updated.
The date the record was last updated.
-=item
otaker
+=item
usernum
-Order taker (
assigned automatically; see L<FS::UID>).
+Order taker (
see L<FS::access_user>)
=item filename
=item filename
@@
-128,7
+128,7
@@
sub check {
$self->ut_numbern('attachnum')
|| $self->ut_number('custnum')
|| $self->ut_numbern('_date')
$self->ut_numbern('attachnum')
|| $self->ut_number('custnum')
|| $self->ut_numbern('_date')
- || $self->ut_
text
('otaker')
+ || $self->ut_
alphan
('otaker')
|| $self->ut_text('filename')
|| $self->ut_text('mime_type')
|| $self->ut_numbern('disabled')
|| $self->ut_text('filename')
|| $self->ut_text('mime_type')
|| $self->ut_numbern('disabled')
@@
-154,6
+154,12
@@
sub size {
return length($self->body);
}
return length($self->body);
}
+# Used by FS::Upgrade to migrate to a new database.
+sub _upgrade_data { # class method
+ my ($class, %opts) = @_;
+ $class->_upgrade_otaker(%opts);
+}
+
=back
=head1 BUGS
=back
=head1 BUGS