[Koha-patches] [PATCH] Fixes bug #2765
Frederic Demians
f.demians at tamil.fr
Fri Nov 7 09:37:33 CET 2008
---
installer/data/mysql/kohastructure.sql | 2 +-
installer/data/mysql/updatedatabase.pl | 7 +++++++
2 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql
index 09aaf97..2a3f2cc 100644
--- a/installer/data/mysql/kohastructure.sql
+++ b/installer/data/mysql/kohastructure.sql
@@ -388,7 +388,7 @@ CREATE TABLE `biblioitems` (
`volume` mediumtext,
`number` mediumtext,
`itemtype` varchar(10) default NULL,
- `isbn` varchar(14) default NULL,
+ `isbn` varchar(20) default NULL,
`issn` varchar(9) default NULL,
`publicationyear` text,
`publishercode` varchar(255) default NULL,
diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl
index 03e13c3..c98bf42 100755
--- a/installer/data/mysql/updatedatabase.pl
+++ b/installer/data/mysql/updatedatabase.pl
@@ -2040,6 +2040,13 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
SetVersion ($DBversion);
}
+$DBversion = "3.01.00.004";
+if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
+ $dbh->do("ALTER TABLE biblioitems MODIFY isbn VARCHAR(20)");
+ print "Extends biblioitems.isbn length to 20 characters\n";
+ SetVersion ($DBversion);
+}
+
=item DropAllForeignKeys($table)
Drop all foreign keys of the table $table
--
1.5.5.GIT
More information about the Koha-patches
mailing list