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

(-)a/installer/data/mysql/kohastructure.sql (+1 lines)
Lines 1243-1248 CREATE TABLE `itemtypes` ( -- defines the item types Link Here
1243
  itemtype varchar(10) NOT NULL default '', -- unique key, a code associated with the item type
1243
  itemtype varchar(10) NOT NULL default '', -- unique key, a code associated with the item type
1244
  description mediumtext, -- a plain text explanation of the item type
1244
  description mediumtext, -- a plain text explanation of the item type
1245
  rentalcharge double(16,4) default NULL, -- the amount charged when this item is checked out/issued
1245
  rentalcharge double(16,4) default NULL, -- the amount charged when this item is checked out/issued
1246
  gstrate decimal(6,4)  default NULL, -- default gst rate to use when ordering this item type
1246
  notforloan smallint(6) default NULL, -- 1 if the item is not for loan, 0 if the item is available for loan
1247
  notforloan smallint(6) default NULL, -- 1 if the item is not for loan, 0 if the item is available for loan
1247
  imageurl varchar(200) default NULL, -- URL for the item type icon
1248
  imageurl varchar(200) default NULL, -- URL for the item type icon
1248
  summary text, -- information from the summary field, may include HTML
1249
  summary text, -- information from the summary field, may include HTML
(-)a/installer/data/mysql/updatedatabase.pl (-1 / +10 lines)
Lines 8781-8786 if ( CheckVersion($DBversion) ) { Link Here
8781
    SetVersion($DBversion);
8781
    SetVersion($DBversion);
8782
}
8782
}
8783
8783
8784
$DBversion = '3.17.00.XXX';
8785
if ( CheckVersion($DBversion) ) {
8786
    $dbh->do(q{
8787
        ALTER TABLE itemtypes ADD COLUMN gstrate decimal(6,4) DEFAULT NULL AFTER rentalcharge
8788
    });
8789
    print "Upgrade to $DBversion done (Bug XXXXX: Add DB field itemtypes.gstrate)\n";
8790
    SetVersion($DBversion);
8791
}
8792
8793
8784
=head1 FUNCTIONS
8794
=head1 FUNCTIONS
8785
8795
8786
=head2 TableExists($table)
8796
=head2 TableExists($table)
8787
- 

Return to bug 12993