Browse code

Move sql into DCA

Benjamin Roth authored on21/03/2019 09:09:41
Showing2 changed files
1 1
deleted file mode 100644
... ...
@@ -1,21 +0,0 @@
1
-
2
-
3
-
4
-
5
-CREATE TABLE `tl_page` (
6
-  `es_ext_agecheck` char(1) NOT NULL default '',
7
-  `es_ext_agecheck_exitPage` int(10) unsigned NOT NULL default '0',
8
-  `es_ext_agecheck_ignorePage` char(1) NOT NULL default '',
9
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
10 0
\ No newline at end of file
... ...
@@ -44,7 +44,8 @@ $GLOBALS['TL_DCA']['tl_page']['fields']['es_ext_agecheck'] = array
44 44
 	'label'                   => &$GLOBALS['TL_LANG']['tl_page']['es_ext_agecheck'],
45 45
 	'exclude'                 => true,
46 46
 	'inputType'               => 'checkbox',
47
-	'eval'                    => array('submitOnChange'=>true)
47
+	'eval'                    => array('submitOnChange'=>true),
48
+  'sql'                     => "char(1) NOT NULL default ''"
48 49
 );
49 50
 
50 51
 $GLOBALS['TL_DCA']['tl_page']['fields']['es_ext_agecheck_exitPage'] = array
... ...
@@ -52,12 +53,14 @@ $GLOBALS['TL_DCA']['tl_page']['fields']['es_ext_agecheck_exitPage'] = array
52 53
 	'label'                   => &$GLOBALS['TL_LANG']['tl_page']['es_ext_agecheck_exitPage'],
53 54
 	'exclude'                 => true,
54 55
 	'inputType'               => 'pageTree',
55
-	'eval'                    => array('fieldType'=>'radio', 'mandatory'=>true)
56
+	'eval'                    => array('fieldType'=>'radio', 'mandatory'=>true),
57
+  'sql'                     => "int(10) unsigned NOT NULL default '0'"
56 58
 );
57 59
 
58 60
 $GLOBALS['TL_DCA']['tl_page']['fields']['es_ext_agecheck_ignorePage'] = array
59 61
 (
60 62
 	'label'                   => &$GLOBALS['TL_LANG']['tl_page']['es_ext_agecheck_ignorePage'],
61 63
 	'exclude'                 => true,
62
-	'inputType'               => 'checkbox'
64
+	'inputType'               => 'checkbox',
65
+  'sql'                     => "char(1) NOT NULL default ''"
63 66
 );
64 67
\ No newline at end of file