Commit 98da5bf7 authored by IKEDA Soji's avatar IKEDA Soji
Browse files

Column size for the name of data source (inclusion label) was too short.

parent a9f21d4e
......@@ -94,6 +94,10 @@ sub new {
my @defkeys = sort keys %{$defopts || {}};
my @defvals = @{$defopts || {}}{@defkeys} if @defkeys;
#FIXME: consider boundaries of Unicode characters (or grapheme clusters)
$options{name} = substr $options{name}, 0, 50
if $options{name} and 50 < length $options{name};
return $type->_new(
%options,
_role => $role,
......
......@@ -138,7 +138,7 @@ my %full_db_struct = (
'order' => 12.7,
},
'inclusion_label_subscriber' => {
'struct' => 'varchar(15)',
'struct' => 'varchar(50)',
'doc' => 'name of data source',
'order' => 12.8,
},
......@@ -951,7 +951,7 @@ my %full_db_struct = (
'order' => 7.7,
},
'inclusion_label_admin' => {
'struct' => 'varchar(15)',
'struct' => 'varchar(50)',
'doc' => 'name of data source',
'order' => 7.8,
},
......
......@@ -1109,7 +1109,7 @@ our %pinfo = (
'order' => 1,
'gettext_id' => "short name for this source",
'format' => '.+',
'length' => 15
'length' => 50,
},
'url' => {
'order' => 2,
......@@ -1203,7 +1203,7 @@ our %pinfo = (
'order' => 1,
'gettext_id' => "short name for this source",
'format' => '.+',
'length' => 15
'length' => 50,
},
'listname' => {
'order' => 2,
......@@ -1237,7 +1237,7 @@ our %pinfo = (
'order' => 1,
'gettext_id' => "short name for this source",
'format' => '.+',
'length' => 15
'length' => 50,
},
'url' => {
'order' => 2,
......@@ -1374,7 +1374,7 @@ our %pinfo = (
'order' => 1,
'gettext_id' => "short name for this source",
'format' => '.+',
'length' => 15
'length' => 50,
},
'host' => {
'order' => 2,
......@@ -1516,7 +1516,7 @@ our %pinfo = (
'order' => 1,
'gettext_id' => "short name for this source",
'format' => '.+',
'length' => 15
'length' => 50,
},
'host' => {
'order' => 2,
......@@ -1704,7 +1704,7 @@ our %pinfo = (
'order' => 1,
'gettext_id' => "short name for this source",
'format' => '.+',
'length' => 15
'length' => 50,
},
'db_type' => {
'order' => 1.5,
......@@ -1812,7 +1812,7 @@ our %pinfo = (
'order' => 1,
'gettext_id' => "short name for this source",
'format' => '.+',
'length' => 15
'length' => 50,
},
'host' => {
'order' => 2,
......@@ -1957,7 +1957,7 @@ our %pinfo = (
'name' => {
'format' => '.+',
'gettext_id' => "short name for this source",
'length' => 15,
'length' => 50,
'order' => 1,
},
'host' => {
......@@ -2151,7 +2151,7 @@ our %pinfo = (
'order' => 1,
'gettext_id' => "short name for this source",
'format' => '.+',
'length' => 15
'length' => 50,
},
'db_type' => {
'order' => 1.5,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment