Skip to content
This repository was archived by the owner on Mar 18, 2021. It is now read-only.

Feat/improve UUID varchar dataypes#4

Open
jackbravo wants to merge 2 commits intomemsql:masterfrom
jackbravo:feat/improve-uuid-varchar-dataypes
Open

Feat/improve UUID varchar dataypes#4
jackbravo wants to merge 2 commits intomemsql:masterfrom
jackbravo:feat/improve-uuid-varchar-dataypes

Conversation

@jackbravo
Copy link
Copy Markdown

This PR fixes two issues I've found:

  1. VARCHAR types can be written without length parameter, essentially they can be an alias to TEXT.
  2. make UUID types use a count generator with 32 hexadecimal characters. That way they can have an unique index which using a pattern (chars generators) didn't allow.

Example table with both errors:

create table app_public.projects (
  id                  uuid primary key default gen_random_uuid(),
  name                varchar not null
)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant