custom fields on devices and ports in the web from config (#945)
* custom device field web display and edit * make display work; relies on T::T calling dict slot or method with same syntax * add storing port custom fields * use resultset method instead, use cf_ prefix * update Pg min ver for jsonb * allow override of position and default for port custom fields * support hidden for custom fields * update description of Objects API class * allow left and mid position for custom fields * add custom fields in csv * change port control sidebar label * fix default missing bug on backend jobs
This commit is contained in:
@@ -85,6 +85,8 @@ __PACKAGE__->add_columns(
|
||||
{ data_type => "boolean", is_nullable => 0, default_value => \"false" },
|
||||
"pae_is_enabled",
|
||||
{ data_type => "boolean", is_nullable => 1 },
|
||||
"custom_fields",
|
||||
{ data_type => "jsonb", is_nullable => 0, default_value => \"{}" },
|
||||
);
|
||||
__PACKAGE__->set_primary_key("ip");
|
||||
|
||||
|
||||
@@ -71,6 +71,8 @@ __PACKAGE__->add_columns(
|
||||
{ data_type => "integer", is_nullable => 1 },
|
||||
"lastchange",
|
||||
{ data_type => "bigint", is_nullable => 1 },
|
||||
"custom_fields",
|
||||
{ data_type => "jsonb", is_nullable => 0, default_value => \"{}" },
|
||||
);
|
||||
__PACKAGE__->set_primary_key("port", "ip");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user