[freeside-commits] freeside/FS/FS Record.pm,1.142,1.143
Ivan,,,
ivan at wavetail.420.am
Sun Sep 23 16:16:29 PDT 2007
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail:/tmp/cvs-serv21157
Modified Files:
Record.pm
Log Message:
remove compat with pre-0.33 DBIx::DBSchema
Index: Record.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Record.pm,v
retrieving revision 1.142
retrieving revision 1.143
diff -u -d -r1.142 -r1.143
--- Record.pm 1 Aug 2007 22:24:36 -0000 1.142
+++ Record.pm 23 Sep 2007 23:16:27 -0000 1.143
@@ -9,9 +9,7 @@
use File::CounterFile;
use Locale::Country;
use DBI qw(:sql_types);
-use DBIx::DBSchema 0.25;
-#use DBIx::DBSchema 0.33; #when check for ->can('unique_singles') is sub insert
- #is removed
+use DBIx::DBSchema 0.33;
use FS::UID qw(dbh getotaker datasrc driver_name);
use FS::CurrentUser;
use FS::Schema qw(dbdef);
@@ -730,10 +728,7 @@
#single-field unique keys are given a value if false
#(like MySQL's AUTO_INCREMENT or Pg SERIAL)
- foreach ( $self->dbdef_table->can('unique_singles')
- ? $self->dbdef_table->unique_singles
- : $self->dbdef_table->unique->singles
- ) {
+ foreach ( $self->dbdef_table->unique_singles) {
$self->unique($_) unless $self->getfield($_);
}
More information about the freeside-commits
mailing list