Skip to content

Commit abb5421

Browse files
committed
[*] Fields - Detect properly date type columns to provide the right date picker experience in the UI
1 parent b7b053f commit abb5421

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Change Log
22

33
## [Unreleased]
4+
### Fixed
5+
- Fields - Detect properly `date` type columns to provide the right date picker experience in the UI.
46

57
## RELEASE 3.1.0 - 2019-07-09
68
### Added

app/services/forest_liana/schema_adapter.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,10 @@ def get_type_for(column)
342342
case column.type
343343
when :boolean
344344
type = 'Boolean'
345-
when :datetime, :date
345+
when :datetime
346346
type = 'Date'
347+
when :date
348+
type = 'Dateonly'
347349
when :integer, :float, :decimal
348350
type = 'Number'
349351
when :json, :jsonb

0 commit comments

Comments
 (0)