~ubuntu-branches/ubuntu/vivid/libhtml-formhandler-model-dbic-perl/vivid

« back to all changes in this revision

Viewing changes to t/lib/BookDB/Schema/Result/Book2PK.pm

  • Committer: Package Import Robot
  • Author(s): Dominique Dumont, Salvatore Bonaccorso, Dominique Dumont
  • Date: 2013-10-13 18:35:48 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20131013183548-t4f9rp4ezb123ahk
Tags: 0.28-1
[ Salvatore Bonaccorso ]
* Change Vcs-Git to canonical URI (git://anonscm.debian.org)
* Change search.cpan.org based URIs to metacpan.org based URIs

[ Dominique Dumont ]
* Imported Upstream version 0.28
* bumped compat to 9
* control:
  * added version dep on libdbix-class-perl
  * bump std-version to 3.9.4
  + build-dep in libtest-exception-perl
* copyright: updated years

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package BookDB::Schema::Result::Book2PK;
 
2
 
 
3
use Moose;
 
4
use MIME::Base64;
 
5
 
 
6
use base 'DBIx::Class';
 
7
 
 
8
__PACKAGE__->load_components("Core");
 
9
__PACKAGE__->table("book2pk");
 
10
__PACKAGE__->add_columns(
 
11
  "libraryid",
 
12
  { data_type => "INTEGER", is_nullable => 0, default_value => 1, size => undef },
 
13
  "id",
 
14
  { data_type => "INTEGER", is_nullable => 0, size => undef },
 
15
  "isbn",
 
16
  { data_type => "varchar", is_nullable => 0, size => 100 },
 
17
  "title",
 
18
  { data_type => "varchar", is_nullable => 0, size => 100,
 
19
    extra => { field_def => { type => 'TextArea', size => '64', temp => 'testing' } },
 
20
  },
 
21
  "publisher",
 
22
  { data_type => "varchar", is_nullable => 0, size => 100 },
 
23
  "pages",
 
24
  { data_type => "INTEGER", is_nullable => 0, size => undef },
 
25
  "year",
 
26
  { data_type => "INTEGER", is_nullable => 0, size => undef },
 
27
);
 
28
__PACKAGE__->set_primary_key("libraryid", "id");
 
29
__PACKAGE__->add_unique_constraint( 'isbn' => ['libraryid', 'isbn'] );
 
30
 
 
31
1;