Skip to content

Validation rules for database names is possibly wrong #429

@karlskidmore

Description

@karlskidmore

Validation rules for database names is possibly wrong (at least for PostgreSQL DBs). Valid names cannot have dashes but can have underscores, but as we can see here:

Name string `yaml:"name,omitempty" validate:"validateLeadingAlphaNumericDash"`
we're specifying the validateLeadingAlphaNumericDash rule, which would allow invalid PostgreSQL database names while prevent use of valid names that used an underscore.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions