From 0bab8232cf925763f6447d84fe1045bbef9bf394 Mon Sep 17 00:00:00 2001 From: Paul Pound Date: Fri, 1 Sep 2017 14:46:10 -0300 Subject: [PATCH] updating database schema for isbn column size --- upei_roblib_ill.install | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/upei_roblib_ill.install b/upei_roblib_ill.install index 3f44c88..e9a9899 100644 --- a/upei_roblib_ill.install +++ b/upei_roblib_ill.install @@ -20,6 +20,17 @@ function upei_roblib_ill_uninstall() { array_walk($variables, 'variable_del'); } +function upei_roblib_ill_update_7100() { + db_change_field('upei_roblib_ill_request', 'isbn', 'isbn', + array( + 'description' => 'book isbn', + 'type' => 'varchar', + 'length' => '200', + 'not null' => FALSE, + ) + ); +} + /** * Implements hook_schema(). */ @@ -96,7 +107,7 @@ function upei_roblib_ill_schema() { 'isbn' => [ 'description' => 'book isbn', 'type' => 'varchar', - 'length' => '8', + 'length' => '200', 'not null' => FALSE, ], 'article_author' => [