Skip to content

[1.23.X] The table public.Group does not exist in the current database #618

Description

@dpapagiannis

Since updating to version 1.23 from 1.22, I have been having the following errors on the browser's console when I access the application on the /groups page:

[
  {
    "error": {
      "json": {
        "message": "\nInvalid `prisma.group.findMany()` invocation:\n\n\nThe table `public.Group` does not exist in the current database.",
        "code": -32603,
        "data": {
          "code": "INTERNAL_SERVER_ERROR",
          "httpStatus": 500,
          "path": "groups.list"
        }
      }
    }
  }
]

The application's backend logs are below:

spliit  | ⨯ Error [PrismaClientKnownRequestError]:
spliit  | Invalid `prisma.group.findUnique()` invocation:
spliit  |
spliit  |
spliit  | The table `public.Group` does not exist in the current database.
spliit  |     at async Module.h [as generateMetadata] (.next/server/chunks/ssr/[root-of-the-server]__09c-nik._.js:1:1787) {
spliit  |   code: 'P2021',
spliit  |   meta: {
spliit  |     modelName: 'Group',
spliit  |     driverAdapterError: Error [DriverAdapterError]: TableDoesNotExist
spliit  |         at F.onError (.next/server/chunks/ssr/_17rru9p._.js:1:8309)
spliit  |         at F.performIO (.next/server/chunks/ssr/_17rru9p._.js:1:8250)
spliit  |         at async F.queryRaw (.next/server/chunks/ssr/_17rru9p._.js:1:4838) {
spliit  |       [cause]: [Object]
spliit  |     }
spliit  |   },
spliit  |   clientVersion: '7.9.1',
spliit  |   digest: '2096996732'
spliit  | }

Downgrading to 1.22 makes the error go away and the application works correctly, displaying the groups that were previously stored.

The table does exist in the database of course, i'm just not sure why 1.23 does not find it.

I'm using postgres 18.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions