Skip to content

Prisma - No destination for column XXXXX #12

Closed Answered by stephenafamo
tombowditch asked this question in Q&A
Discussion options

You must be logged in to vote

I was unable to replicate this. Did you make sure that your database is up to date by running your migrations?

I tried with this schema:

generator db {
  provider = "go run -mod=mod github.com/stephenafamo/bob/gen/bobgen-prisma"
  output   = env("PRISMA_OUTPUT")
}

datasource db {
  provider = "sqlite"
  url      = "file:demo.db"
}

model Business {
  id                Int                     @id @default(autoincrement())
  name              String
  description       String
  slug              String                     @unique
  owner             User                       @relation(fields: [ownerId], references: [id])
  ownerId           Int
  setup             Boolean                    

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@tombowditch
Comment options

@stephenafamo
Comment options

@tombowditch
Comment options

@tombowditch
Comment options

@stephenafamo
Comment options

Answer selected by stephenafamo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants