#Non existing relation "public.product_tag"

1 messages · Page 1 of 1 (latest)

halcyon lake
#

Hi ! I started a project using Medusa 2.0. When logged as admin, other modules are working fine. But only product is not working fetching relation "public.product_tag" instead of "public.product_tags"

winter cape
#

Looks like you’re missing a link sync. Run

npx medusa db:migrate

halcyon lake
#

Migration is done succesfully but the error always persists. Also while running migrations, foreign constraints for product_images is throwing an error

#

I tried to rollback product module migration and rerun migrations, it's still the same error

winter cape
#

Go into your db. Does the table public.product_tags exist ?

halcyon lake
#

The table exists. And it's empty right now

halcyon lake
#

I drop public schema, recreated it and run migrations. There was an issue when I ran migrations after creating projects