Skip to content

no such table dev.MyTable #1665

@jean-noelp

Description

@jean-noelp

Hello,

I used prisma2 to manage my sqlite database, and after migrating to "preview021", I had to change my code from:
ctx.photon.mytables.findMany()
to
ctx.photon.mytable.findMany()
(without the "s").

But now, my server is logging this error:

Invalid `ctx.photon.mytable.findMany()` invocation in
/Users/xxxxxx/back/src/resolvers.ts:36:28

  32       status: args.status,
  33     }
  34   : {}
  35 
→ 36 return ctx.photon.mytable.findMany(

Reason: Error occurred during query execution:
ConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(SqliteFailure(Error { code: Unknown, extended_code: 1 }, Some("no such table: dev.Mytable"))) })

I tried to migrate, to generate... but this error is still here.
How to resolve it ?

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