diff --git a/Netdisco/lib/App/Netdisco/DB/Result/Node.pm b/Netdisco/lib/App/Netdisco/DB/Result/Node.pm index 746e277e..6b22144c 100644 --- a/Netdisco/lib/App/Netdisco/DB/Result/Node.pm +++ b/Netdisco/lib/App/Netdisco/DB/Result/Node.pm @@ -44,7 +44,7 @@ __PACKAGE__->add_columns( original => { default_value => \"now()" }, }, "vlan", - { data_type => "text", is_nullable => 1, default_value => '0' }, + { data_type => "text", is_nullable => 0, default_value => '0' }, ); __PACKAGE__->set_primary_key("mac", "switch", "port", "vlan"); diff --git a/Netdisco/lib/App/Netdisco/DB/Result/NodeWireless.pm b/Netdisco/lib/App/Netdisco/DB/Result/NodeWireless.pm index dc00a0e5..ad1f5fd6 100644 --- a/Netdisco/lib/App/Netdisco/DB/Result/NodeWireless.pm +++ b/Netdisco/lib/App/Netdisco/DB/Result/NodeWireless.pm @@ -38,7 +38,7 @@ __PACKAGE__->add_columns( original => { default_value => \"now()" }, }, "ssid", - { data_type => "text", is_nullable => 1, default_value => '' }, + { data_type => "text", is_nullable => 0, default_value => '' }, ); __PACKAGE__->set_primary_key("mac", "ssid");