From bf78e824110fec7b7ca9460871525f6f9cde6030 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Sun, 19 May 2013 22:37:22 +0100 Subject: [PATCH] fix mistake in DBIx::Class schema --- Netdisco/lib/App/Netdisco/DB/Result/Node.pm | 2 +- Netdisco/lib/App/Netdisco/DB/Result/NodeWireless.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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");