Installing plugin which uses migrations #5946
Replies: 1 comment
-
Nevermind, I had an issue with the old medusa backend installation. After clean installation, running migrations work ok. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have published first plugin to NPM and I wanted to use it in medusa.
Plugin itself uses a new table, so I have created migrations etc. It worked locally.
However when I have installed a plugin from NPM, then it complains that there is no table in database. I checked the database and indeed it is not there.
I have run
npx medusa migrations run
after installing a plugin, but nothing happened (it looks like it does not detect new migration files).Any idea how, after installing a plugin from NPM, can I make database filled by new migration file?
Beta Was this translation helpful? Give feedback.
All reactions