Fix for date format
This commit is contained in:
parent
2074258d4e
commit
3c731b72ec
1 changed files with 2 additions and 1 deletions
|
|
@ -27,7 +27,8 @@ class DateFormatsSeeder extends Seeder
|
|||
];
|
||||
|
||||
foreach ($formats as $format) {
|
||||
$record = DateFormat::whereFormat($format['format'])->first();
|
||||
// use binary to support case-sensitive search
|
||||
$record = DateFormat::whereRaw("BINARY `format`= ?", array($format['format']))->first();
|
||||
if ($record) {
|
||||
$record->picker_format = $format['picker_format'];
|
||||
$record->save();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue