Skip to content

UUID Marked as a Syntax Error in MySQL Adapter #544

@BenMorganMY

Description

@BenMorganMY

I have begun a new dbdocs project with two legacy MariaDB databases. Currently, there is a column called api_key that is of uuid datatype and is causing a syntax error:

  `api_key` uuid NOT NULL,
$ sql2dbml ~/Repos/myhi/db/structure.sql -o ./database.dbml --mysql
  ERROR:
    You have a syntax error at "structure.sql" line 1899 column 12. no viable alternative at input '...,\n  `api_key` uuid'

  A complete log can be found in:
     /Users/ben/Repos/dbdocs/dbml-error.log

I'm wondering it it's possible to update the parser to recognize uuid's?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions