10402: DBIx::Class schema update
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
parent
ef9e013342
commit
28ccac56ce
2 changed files with 186 additions and 57 deletions
|
@ -97,12 +97,6 @@ __PACKAGE__->table("aqbooksellers");
|
|||
data_type: 'mediumtext'
|
||||
is_nullable: 1
|
||||
|
||||
=head2 contact
|
||||
|
||||
data_type: 'varchar'
|
||||
is_nullable: 1
|
||||
size: 100
|
||||
|
||||
=head2 postal
|
||||
|
||||
data_type: 'mediumtext'
|
||||
|
@ -114,41 +108,6 @@ __PACKAGE__->table("aqbooksellers");
|
|||
is_nullable: 1
|
||||
size: 255
|
||||
|
||||
=head2 contpos
|
||||
|
||||
data_type: 'varchar'
|
||||
is_nullable: 1
|
||||
size: 100
|
||||
|
||||
=head2 contphone
|
||||
|
||||
data_type: 'varchar'
|
||||
is_nullable: 1
|
||||
size: 100
|
||||
|
||||
=head2 contfax
|
||||
|
||||
data_type: 'varchar'
|
||||
is_nullable: 1
|
||||
size: 100
|
||||
|
||||
=head2 contaltphone
|
||||
|
||||
data_type: 'varchar'
|
||||
is_nullable: 1
|
||||
size: 100
|
||||
|
||||
=head2 contemail
|
||||
|
||||
data_type: 'varchar'
|
||||
is_nullable: 1
|
||||
size: 100
|
||||
|
||||
=head2 contnotes
|
||||
|
||||
data_type: 'mediumtext'
|
||||
is_nullable: 1
|
||||
|
||||
=head2 active
|
||||
|
||||
data_type: 'tinyint'
|
||||
|
@ -237,24 +196,10 @@ __PACKAGE__->add_columns(
|
|||
{ data_type => "mediumtext", is_nullable => 1 },
|
||||
"booksellerurl",
|
||||
{ data_type => "mediumtext", is_nullable => 1 },
|
||||
"contact",
|
||||
{ data_type => "varchar", is_nullable => 1, size => 100 },
|
||||
"postal",
|
||||
{ data_type => "mediumtext", is_nullable => 1 },
|
||||
"url",
|
||||
{ data_type => "varchar", is_nullable => 1, size => 255 },
|
||||
"contpos",
|
||||
{ data_type => "varchar", is_nullable => 1, size => 100 },
|
||||
"contphone",
|
||||
{ data_type => "varchar", is_nullable => 1, size => 100 },
|
||||
"contfax",
|
||||
{ data_type => "varchar", is_nullable => 1, size => 100 },
|
||||
"contaltphone",
|
||||
{ data_type => "varchar", is_nullable => 1, size => 100 },
|
||||
"contemail",
|
||||
{ data_type => "varchar", is_nullable => 1, size => 100 },
|
||||
"contnotes",
|
||||
{ data_type => "mediumtext", is_nullable => 1 },
|
||||
"active",
|
||||
{ data_type => "tinyint", is_nullable => 1 },
|
||||
"listprice",
|
||||
|
@ -321,6 +266,21 @@ __PACKAGE__->has_many(
|
|||
{ cascade_copy => 0, cascade_delete => 0 },
|
||||
);
|
||||
|
||||
=head2 aqcontacts
|
||||
|
||||
Type: has_many
|
||||
|
||||
Related object: L<Koha::Schema::Result::Aqcontact>
|
||||
|
||||
=cut
|
||||
|
||||
__PACKAGE__->has_many(
|
||||
"aqcontacts",
|
||||
"Koha::Schema::Result::Aqcontact",
|
||||
{ "foreign.booksellerid" => "self.id" },
|
||||
{ cascade_copy => 0, cascade_delete => 0 },
|
||||
);
|
||||
|
||||
=head2 aqcontracts
|
||||
|
||||
Type: has_many
|
||||
|
@ -392,8 +352,8 @@ __PACKAGE__->belongs_to(
|
|||
);
|
||||
|
||||
|
||||
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
|
||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Pqq5chHLUwm5Ss5CCQBL2g
|
||||
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-08-26 11:53:50
|
||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kz1tuPJihENyV6OyCwyX/A
|
||||
|
||||
|
||||
# You can replace this text with custom content, and it will be preserved on regeneration
|
||||
|
|
169
Koha/Schema/Result/Aqcontact.pm
Normal file
169
Koha/Schema/Result/Aqcontact.pm
Normal file
|
@ -0,0 +1,169 @@
|
|||
use utf8;
|
||||
package Koha::Schema::Result::Aqcontact;
|
||||
|
||||
# Created by DBIx::Class::Schema::Loader
|
||||
# DO NOT MODIFY THE FIRST PART OF THIS FILE
|
||||
|
||||
=head1 NAME
|
||||
|
||||
Koha::Schema::Result::Aqcontact
|
||||
|
||||
=cut
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use base 'DBIx::Class::Core';
|
||||
|
||||
=head1 TABLE: C<aqcontacts>
|
||||
|
||||
=cut
|
||||
|
||||
__PACKAGE__->table("aqcontacts");
|
||||
|
||||
=head1 ACCESSORS
|
||||
|
||||
=head2 id
|
||||
|
||||
data_type: 'integer'
|
||||
is_auto_increment: 1
|
||||
is_nullable: 0
|
||||
|
||||
=head2 name
|
||||
|
||||
data_type: 'varchar'
|
||||
is_nullable: 1
|
||||
size: 100
|
||||
|
||||
=head2 position
|
||||
|
||||
data_type: 'varchar'
|
||||
is_nullable: 1
|
||||
size: 100
|
||||
|
||||
=head2 phone
|
||||
|
||||
data_type: 'varchar'
|
||||
is_nullable: 1
|
||||
size: 100
|
||||
|
||||
=head2 altphone
|
||||
|
||||
data_type: 'varchar'
|
||||
is_nullable: 1
|
||||
size: 100
|
||||
|
||||
=head2 fax
|
||||
|
||||
data_type: 'varchar'
|
||||
is_nullable: 1
|
||||
size: 100
|
||||
|
||||
=head2 email
|
||||
|
||||
data_type: 'varchar'
|
||||
is_nullable: 1
|
||||
size: 100
|
||||
|
||||
=head2 notes
|
||||
|
||||
data_type: 'mediumtext'
|
||||
is_nullable: 1
|
||||
|
||||
=head2 claimacquisition
|
||||
|
||||
data_type: 'tinyint'
|
||||
default_value: 0
|
||||
is_nullable: 0
|
||||
|
||||
=head2 claimissues
|
||||
|
||||
data_type: 'tinyint'
|
||||
default_value: 0
|
||||
is_nullable: 0
|
||||
|
||||
=head2 acqprimary
|
||||
|
||||
data_type: 'tinyint'
|
||||
default_value: 0
|
||||
is_nullable: 0
|
||||
|
||||
=head2 serialsprimary
|
||||
|
||||
data_type: 'tinyint'
|
||||
default_value: 0
|
||||
is_nullable: 0
|
||||
|
||||
=head2 booksellerid
|
||||
|
||||
data_type: 'integer'
|
||||
is_foreign_key: 1
|
||||
is_nullable: 0
|
||||
|
||||
=cut
|
||||
|
||||
__PACKAGE__->add_columns(
|
||||
"id",
|
||||
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
|
||||
"name",
|
||||
{ data_type => "varchar", is_nullable => 1, size => 100 },
|
||||
"position",
|
||||
{ data_type => "varchar", is_nullable => 1, size => 100 },
|
||||
"phone",
|
||||
{ data_type => "varchar", is_nullable => 1, size => 100 },
|
||||
"altphone",
|
||||
{ data_type => "varchar", is_nullable => 1, size => 100 },
|
||||
"fax",
|
||||
{ data_type => "varchar", is_nullable => 1, size => 100 },
|
||||
"email",
|
||||
{ data_type => "varchar", is_nullable => 1, size => 100 },
|
||||
"notes",
|
||||
{ data_type => "mediumtext", is_nullable => 1 },
|
||||
"claimacquisition",
|
||||
{ data_type => "tinyint", default_value => 0, is_nullable => 0 },
|
||||
"claimissues",
|
||||
{ data_type => "tinyint", default_value => 0, is_nullable => 0 },
|
||||
"acqprimary",
|
||||
{ data_type => "tinyint", default_value => 0, is_nullable => 0 },
|
||||
"serialsprimary",
|
||||
{ data_type => "tinyint", default_value => 0, is_nullable => 0 },
|
||||
"booksellerid",
|
||||
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
|
||||
);
|
||||
|
||||
=head1 PRIMARY KEY
|
||||
|
||||
=over 4
|
||||
|
||||
=item * L</id>
|
||||
|
||||
=back
|
||||
|
||||
=cut
|
||||
|
||||
__PACKAGE__->set_primary_key("id");
|
||||
|
||||
=head1 RELATIONS
|
||||
|
||||
=head2 booksellerid
|
||||
|
||||
Type: belongs_to
|
||||
|
||||
Related object: L<Koha::Schema::Result::Aqbookseller>
|
||||
|
||||
=cut
|
||||
|
||||
__PACKAGE__->belongs_to(
|
||||
"booksellerid",
|
||||
"Koha::Schema::Result::Aqbookseller",
|
||||
{ id => "booksellerid" },
|
||||
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
|
||||
);
|
||||
|
||||
|
||||
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-08-26 11:53:50
|
||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sIT7PzDxqInviUSe7wuzow
|
||||
|
||||
|
||||
# You can replace this text with custom code or comments, and it will be preserved on regeneration
|
||||
1;
|
Loading…
Reference in a new issue