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

Migrate is creating text type instead of uuid type for @default(uuid()) in postgres #114

Closed

Description

@pantharshit00

Version: [email protected], binary version: bbbeff6f84b408e534ebd866bfd378748e6d6611

Right now lift is using the text type instead of the native uuid type for uuid id columns in postgres.

Reproduction:

Just bootstrap the following model and observe the types created:

model User {
  id   String @default(uuid()) @id
  age  Int?
  name String
}

Activity

  1. added
    bug/2-confirmed
    kind/bug
    on Sep 2, 2019
  2. pantharshit00 commented on Sep 2, 2019

    @pantharshit00
    ContributorAuthor
  3. changed the title [-]Lift is creating text type instead of uuid type for @default(uuid()) in postgresv[/-] [+]Lift is creating text type instead of uuid type for @default(uuid()) in postgres[/+] on Sep 2, 2019
  4. divyenduz commented on Sep 6, 2019

    @divyenduz

    This is related to custom types: prisma/orm#446

  5. changed the title [-]Lift is creating text type instead of uuid type for @default(uuid()) in postgres[/-] [+]Migrate is creating text type instead of uuid type for @default(uuid()) in postgres[/+] on Apr 27, 2020
  6. added
    status/needs-action
    on Sep 2, 2020
  7. albertoperdomo commented on Oct 22, 2020

    @albertoperdomo
    Contributor

    There is WIP to support uuid as a native type. See prisma/orm#3447.
    Until that is live, this is expected behavior.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug/2-confirmedkind/bugstatus/needs-actiontopic: types

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions