Skip to content

Commit dca1464

Browse files
committed
Hotfix move contents of database.sql to dca files
1 parent bbcbb08 commit dca1464

2 files changed

Lines changed: 56 additions & 92 deletions

File tree

contao/config/database.sql

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 56 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
<?php
22

3+
34
/**
4-
* The MetaModels extension allows the creation of multiple collections of custom items,
5-
* each with its own unique set of selectable attributes, with attribute extendability.
6-
* The Front-End modules allow you to build powerful listing and filtering of the
7-
* data in each collection.
5+
* This file is part of MetaModels/filter_range.
6+
*
7+
* (c) 2012-2018 The MetaModels team.
8+
*
9+
* For the full copyright and license information, please view the LICENSE
10+
* file that was distributed with this source code.
11+
*
12+
* This project is provided in good faith and hope to be usable by anyone.
813
*
914
* @package MetaModels
1015
* @subpackage FilterRange
1116
* @author Christian Schiffler <c.schiffler@cyberspectrum.de>
1217
* @author Stefan Heimes <stefan_heimes@hotmail.com>
1318
* @author Andreas Isaak <info@andreas-isaak.de>
1419
* @author Christian de la Haye <service@delahaye.de>
15-
* @copyright 2015 The MetaModels team.
20+
* @author Ingolf Steinhardt <info@e-spin.de>
21+
* @copyright 2012-2018 The MetaModels team.
1622
* @license https://github.com/MetaModels/filter_range/blob/master/LICENSE LGPL-3.0
1723
* @filesource
1824
*/
@@ -60,87 +66,94 @@
6066

6167
$GLOBALS['TL_DCA']['tl_metamodel_filtersetting']['fields']['moreequal'] = array
6268
(
63-
'label' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['moreequal'],
64-
'exclude' => true,
65-
'default' => true,
66-
'inputType' => 'checkbox',
67-
'eval' => array
69+
'label' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['moreequal'],
70+
'exclude' => true,
71+
'default' => true,
72+
'inputType' => 'checkbox',
73+
'sql' => 'char(1) NOT NULL default \'1\'',
74+
'eval' => array
6875
(
69-
'tl_class' => 'w50'
76+
'tl_class' => 'w50'
7077
)
7178
);
7279

7380
$GLOBALS['TL_DCA']['tl_metamodel_filtersetting']['fields']['lessequal'] = array
7481
(
75-
'label' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['lessequal'],
76-
'exclude' => true,
77-
'default' => true,
78-
'inputType' => 'checkbox',
79-
'eval' => array
82+
'label' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['lessequal'],
83+
'exclude' => true,
84+
'default' => true,
85+
'inputType' => 'checkbox',
86+
'sql' => 'char(1) NOT NULL default \'1\'',
87+
'eval' => array
8088
(
81-
'tl_class' => 'w50'
89+
'tl_class' => 'w50'
8290
)
8391
);
8492

8593
$GLOBALS['TL_DCA']['tl_metamodel_filtersetting']['fields']['fromfield'] = array
8694
(
87-
'label' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['fromfield'],
88-
'exclude' => true,
89-
'default' => true,
90-
'inputType' => 'checkbox',
91-
'eval' => array
95+
'label' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['fromfield'],
96+
'exclude' => true,
97+
'default' => true,
98+
'inputType' => 'checkbox',
99+
'sql' => 'char(1) NOT NULL default \'1\'',
100+
'eval' => array
92101
(
93-
'tl_class' => 'w50',
102+
'tl_class' => 'w50',
94103
),
95104
);
96105

97106
$GLOBALS['TL_DCA']['tl_metamodel_filtersetting']['fields']['tofield'] = array
98107
(
99-
'label' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['tofield'],
100-
'exclude' => true,
101-
'default' => true,
102-
'inputType' => 'checkbox',
103-
'eval' => array
108+
'label' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['tofield'],
109+
'exclude' => true,
110+
'default' => true,
111+
'inputType' => 'checkbox',
112+
'sql' => 'char(1) NOT NULL default \'1\'',
113+
'eval' => array
104114
(
105-
'tl_class' => 'w50',
115+
'tl_class' => 'w50',
106116
),
107117
);
108118

109119
$GLOBALS['TL_DCA']['tl_metamodel_filtersetting']['fields']['dateformat'] = array
110120
(
111-
'label' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['dateformat'],
112-
'exclude' => true,
113-
'inputType' => 'text',
114-
'eval' => array
121+
'label' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['dateformat'],
122+
'exclude' => true,
123+
'inputType' => 'text',
124+
'sql' => 'char(32) NOT NULL default \'\'',
125+
'eval' => array
115126
(
116-
'tl_class' => 'w50'
127+
'tl_class' => 'w50'
117128
)
118129
);
119130

120131
$GLOBALS['TL_DCA']['tl_metamodel_filtersetting']['fields']['timetype'] = array
121132
(
122-
'label' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['timetype'],
123-
'exclude' => true,
124-
'inputType' => 'select',
125-
'reference' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['timetypeOptions'],
126-
'options' => array
133+
'label' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['timetype'],
134+
'exclude' => true,
135+
'inputType' => 'select',
136+
'reference' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['timetypeOptions'],
137+
'options' => array
127138
(
128139
'time',
129140
'date',
130141
'datim'
131142
),
132-
'eval' => array
143+
'sql' => 'varchar(64) NOT NULL default \'\'',
144+
'eval' => array
133145
(
134-
'doNotSaveEmpty' => true,
135-
'tl_class' => 'w50'
146+
'doNotSaveEmpty' => true,
147+
'tl_class' => 'w50'
136148
)
137149
);
138150

139151
$GLOBALS['TL_DCA']['tl_metamodel_filtersetting']['fields']['attr_id2'] = array
140152
(
141-
'label' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['attr_id2'],
153+
'label' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['attr_id2'],
142154
'exclude' => true,
143155
'inputType' => 'select',
156+
'sql' => 'int(10) unsigned NOT NULL default \'0\'',
144157
'eval' => array
145158
(
146159
'doNotSaveEmpty' => true,
@@ -152,27 +165,3 @@
152165
'chosen' => true
153166
),
154167
);
155-
156-
$GLOBALS['TL_DCA']['tl_metamodel_filtersetting']['fields']['fromfield'] = array
157-
(
158-
'label' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['fromfield'],
159-
'exclude' => true,
160-
'default' => true,
161-
'inputType' => 'checkbox',
162-
'eval' => array
163-
(
164-
'tl_class' => 'w50 clr'
165-
)
166-
);
167-
168-
$GLOBALS['TL_DCA']['tl_metamodel_filtersetting']['fields']['tofield'] = array
169-
(
170-
'label' => &$GLOBALS['TL_LANG']['tl_metamodel_filtersetting']['tofield'],
171-
'exclude' => true,
172-
'default' => true,
173-
'inputType' => 'checkbox',
174-
'eval' => array
175-
(
176-
'tl_class' => 'w50'
177-
)
178-
);

0 commit comments

Comments
 (0)