FlowFuse / FlowFuse/flowfuse

Tables Offerings defaults for `date` type field are completely ignored

Open
#5,946 0 comments 0 reactions 0 assignees View on GitHub
needs-triage size:XS type:bug
Dominant language
JavaScript
Stars
400
Forks
89
Avg merge
1d 20h
Merged PRs (30d)
149

Description

### Current Behavior

I can enter a default for a `date` field but it is never applied.

Image

Result:
```
d0bg4xgpR5-# \d tz
Table "public.tz"
Column | Type | Collation | Nullable | Default
----------+--------+-----------+----------+--------------------------------
id | bigint | | not null | nextval('tz_id_seq'::regclass)
y2000 | date | | not null |
tomorrow | date | | not null |
```

### Expected Behavior

Should set the default

### Steps To Reproduce

create a table with a column type `date` and a default value

### Environment

- FlowFuse version: 2.20.0 FFC Live
- Node.js version:
- npm version:
- Platform/OS:
- Browser:

### Have you provided an initial effort estimate for this issue?

I have provided an initial effort estimate

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.