View | Details | Raw Unified | Return to bug 18231
Collapse All | Expand All

(-)a/Koha/Schema/Result/BorrowerAttributeType.pm (-2 / +2 lines)
Lines 154-161 __PACKAGE__->has_many( Link Here
154
);
154
);
155
155
156
156
157
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-04-25 18:09:15
157
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-03-17 11:43:14
158
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KzCA3jRyp/uqYdrHFXaw7Q
158
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0jCQN4xSJYbQC5e7fGn5WQ
159
159
160
160
161
# You can replace this text with custom content, and it will be preserved on regeneration
161
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Issue.pm (-2 / +2 lines)
Lines 222-229 __PACKAGE__->belongs_to( Link Here
222
);
222
);
223
223
224
224
225
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-11-04 12:00:58
225
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-03-17 11:43:14
226
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kREecsHr6wZPiokS946BHw
226
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zGLKwoUmq4pcvY16ei3VPg
227
227
228
__PACKAGE__->belongs_to(
228
__PACKAGE__->belongs_to(
229
    "borrower",
229
    "borrower",
(-)a/Koha/Schema/Result/Issuingrule.pm (-2 / +2 lines)
Lines 330-337 __PACKAGE__->add_unique_constraint( Link Here
330
);
330
);
331
331
332
332
333
# Created by DBIx::Class::Schema::Loader v0.07045 @ 2017-03-08 15:49:48
333
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-03-17 11:43:14
334
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:714V5KtlVyeDUidAdc2m/g
334
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3K9yYzzg9IYRAuxSXd7CPg
335
335
336
336
337
# You can replace this text with custom code or comments, and it will be preserved on regeneration
337
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/OldIssue.pm (-2 / +2 lines)
Lines 207-214 __PACKAGE__->belongs_to( Link Here
207
);
207
);
208
208
209
209
210
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-04-23 13:04:51
210
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-03-17 11:43:14
211
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9GdzytyInRcFZns/q0qb3Q
211
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yTyCAau9EZHBgdqN4Ptljg
212
212
213
sub koha_objects_class {
213
sub koha_objects_class {
214
    'Koha::Old::Checkouts';
214
    'Koha::Old::Checkouts';
(-)a/Koha/Schema/Result/SearchField.pm (-4 / +4 lines)
Lines 48-54 the human readable name of the field, for display Link Here
48
=head2 type
48
=head2 type
49
49
50
  data_type: 'enum'
50
  data_type: 'enum'
51
  extra: {list => ["string","date","number","boolean","sum"]}
51
  extra: {list => ["","string","date","number","boolean","sum"]}
52
  is_nullable: 0
52
  is_nullable: 0
53
53
54
what type of data this holds, relevant when storing it in the search engine
54
what type of data this holds, relevant when storing it in the search engine
Lines 65-71 __PACKAGE__->add_columns( Link Here
65
  "type",
65
  "type",
66
  {
66
  {
67
    data_type => "enum",
67
    data_type => "enum",
68
    extra => { list => ["string", "date", "number", "boolean", "sum"] },
68
    extra => { list => ["", "string", "date", "number", "boolean", "sum"] },
69
    is_nullable => 0,
69
    is_nullable => 0,
70
  },
70
  },
71
);
71
);
Lines 114-121 __PACKAGE__->has_many( Link Here
114
);
114
);
115
115
116
116
117
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-10-12 16:41:47
117
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-03-17 11:41:40
118
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4MJO9216VF37w7PlWCcBKg
118
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VxltkYAqLdc89K4p7j7n5Q
119
119
120
__PACKAGE__->many_to_many("search_marc_maps", "search_marc_to_fields", "search_marc_map");
120
__PACKAGE__->many_to_many("search_marc_maps", "search_marc_to_fields", "search_marc_map");
121
121
(-)a/installer/data/mysql/atomicupdate/Bug-18231-id_to_ussingrules_table.perl (+11 lines)
Line 0 Link Here
1
$DBversion = 'XXX';  # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
    unless ( column_exists( 'issuingrules', 'issuingrules_id' ) ) {
4
        $dbh->do(q|ALTER TABLE `issuingrules` DROP PRIMARY KEY|);
5
        $dbh->do(q|ALTER TABLE `issuingrules` ADD `issuingrules_id` INT( 11 ) NOT NULL auto_increment PRIMARY KEY FIRST|);
6
        $dbh->do(q|ALTER TABLE `issuingrules` ADD CONSTRAINT UNIQUE `issuingrules_id` (`branchcode`,`categorycode`,`itemtype`)|);
7
    }
8
9
    SetVersion( $DBversion );
10
    print "Upgrade to $DBversion done (Bug 18231 - Add issuingrules.issuingrules_id)\n";
11
}
(-)a/installer/data/mysql/atomicupdate/Bug-18231-id_to_ussingrules_table.sql (-4 lines)
Lines 1-3 Link Here
1
ALTER TABLE `issuingrules` DROP PRIMARY KEY;
2
ALTER TABLE `issuingrules` ADD `issuingrules_id` INT( 11 ) NOT NULL auto_increment PRIMARY KEY FIRST;
3
ALTER TABLE `issuingrules` ADD CONSTRAINT UNIQUE `issuingrules_id` (`branchcode`,`categorycode`,`itemtype`);
4
- 

Return to bug 18231