Skip to content

Database field too short for FieldType color #498

@wini2

Description

@wini2

When using the FieldType color with opacity the automatically created db-field ist varchar(7); only long enough for regular hex-values.

- identifier: hg-color
  type: Color
  opacity: true
  autocomplete: true
  default: '#0000FF'
  valuePicker:
    items:
      - [ 'helleres Grau', 'rgba(225, 222, 222, 0.2)']

This seems to be a little to short for rgba(xxx, xxx,xxx,0.5) or named colors like LightGoldenrodYellow. After changing it to a longer value in the db directly, the BE Analyze Database Structure suggests to resize it back to 7. This can be a little bit confusing.

content-blocks v1.3.19

Metadata

Metadata

Assignees

No one assigned

    Labels

    DiscussionGather different opinions on a topicbugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions