|
Lines 1-12
Link Here
|
| 1 |
use utf8; |
1 |
use utf8; |
| 2 |
package Koha::Schema::Result::ImportSource; |
2 |
package Koha::Schema::Result::RecordSource; |
| 3 |
|
3 |
|
| 4 |
# Created by DBIx::Class::Schema::Loader |
4 |
# Created by DBIx::Class::Schema::Loader |
| 5 |
# DO NOT MODIFY THE FIRST PART OF THIS FILE |
5 |
# DO NOT MODIFY THE FIRST PART OF THIS FILE |
| 6 |
|
6 |
|
| 7 |
=head1 NAME |
7 |
=head1 NAME |
| 8 |
|
8 |
|
| 9 |
Koha::Schema::Result::ImportSource |
9 |
Koha::Schema::Result::RecordSource |
| 10 |
|
10 |
|
| 11 |
=cut |
11 |
=cut |
| 12 |
|
12 |
|
|
Lines 15-29
use warnings;
Link Here
|
| 15 |
|
15 |
|
| 16 |
use base 'DBIx::Class::Core'; |
16 |
use base 'DBIx::Class::Core'; |
| 17 |
|
17 |
|
| 18 |
=head1 TABLE: C<import_source> |
18 |
=head1 TABLE: C<record_sources> |
| 19 |
|
19 |
|
| 20 |
=cut |
20 |
=cut |
| 21 |
|
21 |
|
| 22 |
__PACKAGE__->table("import_source"); |
22 |
__PACKAGE__->table("record_sources"); |
| 23 |
|
23 |
|
| 24 |
=head1 ACCESSORS |
24 |
=head1 ACCESSORS |
| 25 |
|
25 |
|
| 26 |
=head2 import_source_id |
26 |
=head2 record_source_id |
| 27 |
|
27 |
|
| 28 |
data_type: 'integer' |
28 |
data_type: 'integer' |
| 29 |
is_auto_increment: 1 |
29 |
is_auto_increment: 1 |
|
Lines 43-49
__PACKAGE__->table("import_source");
Link Here
|
| 43 |
=cut |
43 |
=cut |
| 44 |
|
44 |
|
| 45 |
__PACKAGE__->add_columns( |
45 |
__PACKAGE__->add_columns( |
| 46 |
"import_source_id", |
46 |
"record_source_id", |
| 47 |
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
47 |
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
| 48 |
"name", |
48 |
"name", |
| 49 |
{ data_type => "text", is_nullable => 0 }, |
49 |
{ data_type => "text", is_nullable => 0 }, |
|
Lines 55-67
__PACKAGE__->add_columns(
Link Here
|
| 55 |
|
55 |
|
| 56 |
=over 4 |
56 |
=over 4 |
| 57 |
|
57 |
|
| 58 |
=item * L</import_source_id> |
58 |
=item * L</record_source_id> |
| 59 |
|
59 |
|
| 60 |
=back |
60 |
=back |
| 61 |
|
61 |
|
| 62 |
=cut |
62 |
=cut |
| 63 |
|
63 |
|
| 64 |
__PACKAGE__->set_primary_key("import_source_id"); |
64 |
__PACKAGE__->set_primary_key("record_source_id"); |
| 65 |
|
65 |
|
| 66 |
=head1 RELATIONS |
66 |
=head1 RELATIONS |
| 67 |
|
67 |
|
|
Lines 81-112
__PACKAGE__->belongs_to(
Link Here
|
| 81 |
); |
81 |
); |
| 82 |
|
82 |
|
| 83 |
|
83 |
|
| 84 |
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-02-02 19:57:13 |
84 |
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-07-27 20:42:58 |
| 85 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:oz4padFuRhd33AKaO5hRRQ |
85 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:m9dw0dxca5lW/2nUE4HLxQ |
| 86 |
|
86 |
|
| 87 |
|
87 |
|
| 88 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
88 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
| 89 |
|
|
|
| 90 |
=head1 CUSTOM CODE |
| 91 |
|
| 92 |
=head2 koha_object_class |
| 93 |
|
| 94 |
name of the corresponding Koha::Object |
| 95 |
|
| 96 |
=cut |
| 97 |
|
| 98 |
sub koha_object_class { |
| 99 |
'Koha::ImportSource'; |
| 100 |
} |
| 101 |
|
| 102 |
=head2 koha_objects_class |
| 103 |
|
| 104 |
name of the corresponding Koha::Objects |
| 105 |
|
| 106 |
=cut |
| 107 |
|
| 108 |
sub koha_objects_class { |
| 109 |
'Koha::ImportSources'; |
| 110 |
} |
| 111 |
|
| 112 |
1; |
89 |
1; |
| 113 |
- |
|
|