From 2e5139a756d91eb9186cd0bfabe9bb257cbc2c75 Mon Sep 17 00:00:00 2001 From: David Molineus Date: Thu, 6 Oct 2016 14:19:01 +0200 Subject: [PATCH] Change alias field allowing null values. --- module/dca/tl_leaflet_icon.php | 2 +- module/dca/tl_leaflet_layer.php | 2 +- module/dca/tl_leaflet_map.php | 2 +- module/dca/tl_leaflet_marker.php | 2 +- module/dca/tl_leaflet_popup.php | 2 +- module/dca/tl_leaflet_style.php | 2 +- module/dca/tl_leaflet_vector.php | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/module/dca/tl_leaflet_icon.php b/module/dca/tl_leaflet_icon.php index a82483a..1b4ca7d 100644 --- a/module/dca/tl_leaflet_icon.php +++ b/module/dca/tl_leaflet_icon.php @@ -183,7 +183,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_icon'] = array \Netzmacht\Contao\Leaflet\Dca\Validator::callback('validateAlias'), ), 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true), - 'sql' => "varchar(255) NOT NULL default ''" + 'sql' => "varchar(255) NULL" ), 'type' => array ( diff --git a/module/dca/tl_leaflet_layer.php b/module/dca/tl_leaflet_layer.php index 3e4a747..58c0ef5 100644 --- a/module/dca/tl_leaflet_layer.php +++ b/module/dca/tl_leaflet_layer.php @@ -270,7 +270,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = array \Netzmacht\Contao\Leaflet\Dca\Validator::callback('validateAlias'), ), 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true), - 'sql' => "varchar(255) NOT NULL default ''" + 'sql' => "varchar(255) NULL" ), 'type' => array ( diff --git a/module/dca/tl_leaflet_map.php b/module/dca/tl_leaflet_map.php index ac4b537..a19aa6c 100644 --- a/module/dca/tl_leaflet_map.php +++ b/module/dca/tl_leaflet_map.php @@ -172,7 +172,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = array \Netzmacht\Contao\Leaflet\Dca\Validator::callback('validateAlias') ), 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true), - 'sql' => "varchar(255) NOT NULL default ''" + 'sql' => "varchar(255) NULL" ), 'center' => array ( diff --git a/module/dca/tl_leaflet_marker.php b/module/dca/tl_leaflet_marker.php index ed56ecf..a3b359f 100644 --- a/module/dca/tl_leaflet_marker.php +++ b/module/dca/tl_leaflet_marker.php @@ -181,7 +181,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_marker'] = array \Netzmacht\Contao\Leaflet\Dca\Validator::callback('validateAlias'), ), 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true), - 'sql' => "varchar(255) NOT NULL default ''" + 'sql' => "varchar(255) NULL" ), 'coordinates' => array ( diff --git a/module/dca/tl_leaflet_popup.php b/module/dca/tl_leaflet_popup.php index 120ae01..4290eb9 100644 --- a/module/dca/tl_leaflet_popup.php +++ b/module/dca/tl_leaflet_popup.php @@ -169,7 +169,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_popup'] = array \Netzmacht\Contao\Leaflet\Dca\Validator::callback('validateAlias'), ), 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true), - 'sql' => "varchar(255) NOT NULL default ''" + 'sql' => "varchar(255) NULL" ), 'maxWidth' => array ( diff --git a/module/dca/tl_leaflet_style.php b/module/dca/tl_leaflet_style.php index 5106f2e..f5ca94f 100644 --- a/module/dca/tl_leaflet_style.php +++ b/module/dca/tl_leaflet_style.php @@ -162,7 +162,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_style'] = array \Netzmacht\Contao\Leaflet\Dca\Validator::callback('validateAlias'), ), 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true), - 'sql' => "varchar(255) NOT NULL default ''" + 'sql' => "varchar(255) NULL" ), 'type' => array ( diff --git a/module/dca/tl_leaflet_vector.php b/module/dca/tl_leaflet_vector.php index 526921a..4ff6289 100644 --- a/module/dca/tl_leaflet_vector.php +++ b/module/dca/tl_leaflet_vector.php @@ -207,7 +207,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = array \Netzmacht\Contao\Leaflet\Dca\Validator::callback('validateAlias'), ), 'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true), - 'sql' => "varchar(255) NOT NULL default ''" + 'sql' => "varchar(255) NULL" ), 'type' => array (