Bug 21068: (RM follow-up) Schema updates
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
34827d660c
commit
4a2bdc80ab
|
|
@ -860,21 +860,6 @@ __PACKAGE__->has_many(
|
|||
{ cascade_copy => 0, cascade_delete => 0 },
|
||||
);
|
||||
|
||||
=head2 borrower_syncs
|
||||
|
||||
Type: has_many
|
||||
|
||||
Related object: L<Koha::Schema::Result::BorrowerSync>
|
||||
|
||||
=cut
|
||||
|
||||
__PACKAGE__->has_many(
|
||||
"borrower_syncs",
|
||||
"Koha::Schema::Result::BorrowerSync",
|
||||
{ "foreign.borrowernumber" => "self.borrowernumber" },
|
||||
{ cascade_copy => 0, cascade_delete => 0 },
|
||||
);
|
||||
|
||||
=head2 branchcode
|
||||
|
||||
Type: belongs_to
|
||||
|
|
@ -1416,8 +1401,8 @@ Composing rels: L</aqorder_users> -> ordernumber
|
|||
__PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber");
|
||||
|
||||
|
||||
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-07-06 14:12:40
|
||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LaQWPXzF1Amzt8fgEEyHdg
|
||||
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-08-30 15:33:44
|
||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4C4USKLUfuOaydGmIfeOnQ
|
||||
|
||||
__PACKAGE__->belongs_to(
|
||||
"guarantor",
|
||||
|
|
|
|||
|
|
@ -1,122 +0,0 @@
|
|||
use utf8;
|
||||
package Koha::Schema::Result::BorrowerSync;
|
||||
|
||||
# Created by DBIx::Class::Schema::Loader
|
||||
# DO NOT MODIFY THE FIRST PART OF THIS FILE
|
||||
|
||||
=head1 NAME
|
||||
|
||||
Koha::Schema::Result::BorrowerSync
|
||||
|
||||
=cut
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use base 'DBIx::Class::Core';
|
||||
|
||||
=head1 TABLE: C<borrower_sync>
|
||||
|
||||
=cut
|
||||
|
||||
__PACKAGE__->table("borrower_sync");
|
||||
|
||||
=head1 ACCESSORS
|
||||
|
||||
=head2 borrowersyncid
|
||||
|
||||
data_type: 'integer'
|
||||
is_auto_increment: 1
|
||||
is_nullable: 0
|
||||
|
||||
=head2 borrowernumber
|
||||
|
||||
data_type: 'integer'
|
||||
is_foreign_key: 1
|
||||
is_nullable: 0
|
||||
|
||||
=head2 synctype
|
||||
|
||||
data_type: 'varchar'
|
||||
is_nullable: 0
|
||||
size: 32
|
||||
|
||||
=head2 sync
|
||||
|
||||
data_type: 'tinyint'
|
||||
default_value: 0
|
||||
is_nullable: 0
|
||||
|
||||
=head2 syncstatus
|
||||
|
||||
data_type: 'varchar'
|
||||
is_nullable: 1
|
||||
size: 10
|
||||
|
||||
=head2 lastsync
|
||||
|
||||
data_type: 'varchar'
|
||||
is_nullable: 1
|
||||
size: 50
|
||||
|
||||
=head2 hashed_pin
|
||||
|
||||
data_type: 'varchar'
|
||||
is_nullable: 1
|
||||
size: 64
|
||||
|
||||
=cut
|
||||
|
||||
__PACKAGE__->add_columns(
|
||||
"borrowersyncid",
|
||||
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
|
||||
"borrowernumber",
|
||||
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
|
||||
"synctype",
|
||||
{ data_type => "varchar", is_nullable => 0, size => 32 },
|
||||
"sync",
|
||||
{ data_type => "tinyint", default_value => 0, is_nullable => 0 },
|
||||
"syncstatus",
|
||||
{ data_type => "varchar", is_nullable => 1, size => 10 },
|
||||
"lastsync",
|
||||
{ data_type => "varchar", is_nullable => 1, size => 50 },
|
||||
"hashed_pin",
|
||||
{ data_type => "varchar", is_nullable => 1, size => 64 },
|
||||
);
|
||||
|
||||
=head1 PRIMARY KEY
|
||||
|
||||
=over 4
|
||||
|
||||
=item * L</borrowersyncid>
|
||||
|
||||
=back
|
||||
|
||||
=cut
|
||||
|
||||
__PACKAGE__->set_primary_key("borrowersyncid");
|
||||
|
||||
=head1 RELATIONS
|
||||
|
||||
=head2 borrowernumber
|
||||
|
||||
Type: belongs_to
|
||||
|
||||
Related object: L<Koha::Schema::Result::Borrower>
|
||||
|
||||
=cut
|
||||
|
||||
__PACKAGE__->belongs_to(
|
||||
"borrowernumber",
|
||||
"Koha::Schema::Result::Borrower",
|
||||
{ borrowernumber => "borrowernumber" },
|
||||
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
|
||||
);
|
||||
|
||||
|
||||
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-11-14 09:56:24
|
||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yQUJdr7d6/xD6RvZCH47Yw
|
||||
|
||||
|
||||
# You can replace this text with custom code or comments, and it will be preserved on regeneration
|
||||
1;
|
||||
Loading…
Reference in New Issue