Permalink
Browse files

LLK 4.8 installer: PT#15655967, #7136777,

15655967: updatedatebase and schema sync, various fields
7136777: add default BILLING notice to table `letter`
  • Loading branch information...
1 parent ceb8cad commit 4edfc910b4e24b77a9577ae6714290d43a0cb058 Ha Quach committed with ctfliblime Sep 23, 2011
@@ -12,5 +12,6 @@ VALUES ('circulation','ODUE','Overdue Notice','Item Overdue','Dear <<borrowers.f
<<borrowers.cardnumber>>\n\nYou have a hold available for pickup as of <<reserves.waitingdate>>:\r\n\r\nTitle: <<biblio.title>>\r\nAuthor: <<biblio.author>>\r\nCopy: <<items.copynumber>>\r\n'),
('circulation','CHECKIN','Item Check-in (Digest)','Check-ins','The following items have been checked in:\r\n----\r\n<<biblio.title>>\r\n----\r\nThank you.'),
('circulation','CHECKOUT','Item Check-out (Digest)','Checkouts','The following items have been checked out:\r\n----\r\n<<biblio.title>>\r\n----\r\nThank you for visiting <<branches.branchname>>.'),
+('circulation','BILLING','Billing Notice','Notice of Unresolved Charges','Dear <<borrowers.firstname>> <<borrowers.surname>>,\r\n\r\nLibrary records show that the following charges have not been paid. Please resolve these charges at the Borrower Service\'s Desk as soon as possible. If you have already contacted the library and resolved this matter, please disregard this notice.\r\n\r\nPlease log in to your library account to verify how much you owe.\r\n\r\n<<borrowers.last_reported_amount>>\r\n<<borrowers.last_reported_date>>\r\n*This price may not be exact. The charge will be based on the current price from distributors.\r\n\r\nPlease do not reply to this email message, it has been sent from an information only mailbox.\r\n\r\nThank you for your attention to this matter.'),
('reserves','HOLD_CANCELED','Hold canceled','Hold canceled','The hold on the following item was canceled due to its removal from circulation.\r\n\r\n<<biblio.title>>\r\n\r\n'),
('reserves','HOLD_EXPIRED','Hold Expired','Hold Expired','The hold on the following item has expired.\r\n\r\n<<biblio.title>>\r\n\r\n');
@@ -873,7 +873,7 @@ CREATE TABLE `deletedbiblioitems` (
DROP TABLE IF EXISTS `deletedborrowers`;
CREATE TABLE `deletedborrowers` (
`borrowernumber` int(11) NOT NULL default 0,
- `cardnumber` varchar(9) NOT NULL default '',
+ `cardnumber` varchar(16) DEFAULT NULL,
`surname` mediumtext NOT NULL,
`firstname` text,
`title` mediumtext,
@@ -1304,7 +1304,7 @@ CREATE TABLE `labels_layouts` (
`guidebox` int(1) default '0',
`font` char(10) character set utf8 collate utf8_unicode_ci NOT NULL default 'TR',
`font_size` int(4) NOT NULL default '10',
- `callnum_split` int(1) default '0',
+ `callnum_split` varchar(8),
`text_justify` char(1) character set utf8 collate utf8_unicode_ci NOT NULL default 'L',
`format_string` varchar(210) NOT NULL default 'barcode',
`break_rule_string` varchar(255) NOT NULL DEFAULT '',
@@ -2571,7 +2571,7 @@ CREATE TABLE IF NOT EXISTS clubsAndServicesArchetypes (
caseData2Desc text,
caseData3Desc text,
caseRequireEmail tinyint(1) NOT NULL default '0',
- branchcode varchar(4) default NULL COMMENT 'branch where archetype was created.',
+ branchcode varchar(10) default NULL COMMENT 'branch where archetype was created.',
last_updated timestamp NOT NULL default CURRENT_TIMESTAMP,
PRIMARY KEY (casaId)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
@@ -2768,7 +2768,7 @@ CREATE TABLE `tmp_holdsqueue` (
`cardnumber` varchar(16) default NULL,
`reservedate` datetime default NULL,
`title` mediumtext,
- `itemcallnumber` varchar(30) default NULL,
+ `itemcallnumber` varchar(255) default NULL,
`holdingbranch` varchar(10) default NULL,
`pickbranch` varchar(10) default NULL,
`notes` text,
@@ -4696,6 +4696,24 @@
print "Upgrade to $DBversion done ( Add session_defaults_id to sesstion defaults table and make it the primary key )\n";
}
+$DBversion = '4.08.00.003';
+if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
+ SetVersion ($DBversion);
+ $dbh->do("ALTER TABLE clubsAndServicesArchetypes CHANGE branchcode branchcode varchar(10) DEFAULT NULL COMMENT 'branch where archetype was created.'");
+ $dbh->do("ALTER TABLE labels_layouts CHANGE callnum_split callnum_split varchar(8)");
+ $dbh->do("ALTER TABLE tmp_holdsqueue CHANGE itemcallnumber itemcallnumber varchar(255) DEFAULT NULL");
+ $dbh->do(q{ALTER TABLE deletedborrowers CHANGE cardnumber cardnumber varchar(16) DEFAULT NULL});
+
+ $dbh->do(q|INSERT IGNORE INTO letter(module,code,name,title,content) VALUES(
+ 'circulation',
+ 'BILLING',
+ 'Billing Notice',
+ 'Notice of Unresolved Charges',
+ 'Dear <<borrowers.firstname>> <<borrowers.surname>>,\r\n\r\nLibrary records show that the following charges have not been paid. Please resolve these charges at the Borrower Service\'s Desk as soon as possible. If you have already contacted the library and resolved this matter, please disregard this notice.\r\n\r\nPlease log in to your library account to verify how much you owe.\r\n\r\n<<borrowers.last_reported_amount>>\r\n<<borrowers.last_reported_date>>\r\n*This price may not be exact. The charge will be based on the current price from distributors.\r\n\r\nPlease do not reply to this email message, it has been sent from an information only mailbox.\r\n\r\nThank you for your attention to this matter.')|);
+
+ print "Upgrade to $DBversion done ( sync schema with kohastructure, add BILLING notice )\n";
+}
+
printf "Database schema now up to date at version %s as of %s.\n", $DBversion, scalar localtime;
=item DropAllForeignKeys($table)

0 comments on commit 4edfc91

Please sign in to comment.