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

(-)a/installer/data/mysql/kohastructure.sql (+1 lines)
Lines 1246-1251 CREATE TABLE `itemtypes` ( -- defines the item types Link Here
1246
  itemtype varchar(10) NOT NULL default '', -- unique key, a code associated with the item type
1246
  itemtype varchar(10) NOT NULL default '', -- unique key, a code associated with the item type
1247
  description mediumtext, -- a plain text explanation of the item type
1247
  description mediumtext, -- a plain text explanation of the item type
1248
  rentalcharge double(16,4) default NULL, -- the amount charged when this item is checked out/issued
1248
  rentalcharge double(16,4) default NULL, -- the amount charged when this item is checked out/issued
1249
  gstrate decimal(6,4)  default NULL, -- default gst rate to use when ordering this item type
1249
  notforloan smallint(6) default NULL, -- 1 if the item is not for loan, 0 if the item is available for loan
1250
  notforloan smallint(6) default NULL, -- 1 if the item is not for loan, 0 if the item is available for loan
1250
  imageurl varchar(200) default NULL, -- URL for the item type icon
1251
  imageurl varchar(200) default NULL, -- URL for the item type icon
1251
  summary text, -- information from the summary field, may include HTML
1252
  summary text, -- information from the summary field, may include HTML
(-)a/installer/data/mysql/updatedatabase.pl (-1 / +10 lines)
Lines 9005-9010 if ( CheckVersion($DBversion) ) { Link Here
9005
    SetVersion($DBversion);
9005
    SetVersion($DBversion);
9006
}
9006
}
9007
9007
9008
$DBversion = '3.17.00.XXX';
9009
if ( CheckVersion($DBversion) ) {
9010
    $dbh->do(q{
9011
        ALTER TABLE itemtypes ADD COLUMN gstrate decimal(6,4) DEFAULT NULL AFTER rentalcharge
9012
    });
9013
    print "Upgrade to $DBversion done (Bug XXXXX: Add DB field itemtypes.gstrate)\n";
9014
    SetVersion($DBversion);
9015
}
9016
9017
9008
=head1 FUNCTIONS
9018
=head1 FUNCTIONS
9009
9019
9010
=head2 TableExists($table)
9020
=head2 TableExists($table)
9011
- 

Return to bug 12993