#Migration issues

4 messages · Page 1 of 1 (latest)

austere spindle
#

Hi
I switched my db from a self hosted mysql to postgresql on fly.io.

Changing the prisma client worked and I can use my application with the new database.

Now there are some issues:

  1. I wanted to migrate my old data to the new db using pgloader, seamed to work but my api doesn't return the data. When I look into the db I see the migrated data.

  2. I do see the the newly created data in prisma studio and get it returned from my client.

  3. Prisma studio shows different data regarding I use the proxied database or connect directly

Anybody has an idea what is happening here?

austere spindle
#

Anybody?

unborn knoll
#

Hey 👋

but my api doesn't return the data
Does your API return no data? It is difficult to predict what might have gone wrong without looking at the code.

If you connect to your new postgresql database via a database GUI tool, do you see the expected data?

austere spindle
#

Thanks for the hint, I looked into the tables with pgadmin and noticed my issue. The migration created the tables lowercase e.g. volunteers and the new created Pascalcase e.g. Volunteers. When querying in the console I typed e.g. "from public.Volunteers" which used public.volunteers. With public."Volunteers" I get the correct data.