fix(create-medusa-app): use db:migrate to run migrations (#9565)
This commit is contained in:
2
.github/workflows/test-cli-with-database.yml
vendored
2
.github/workflows/test-cli-with-database.yml
vendored
@@ -59,7 +59,7 @@ jobs:
|
|||||||
working-directory: ../cli-test
|
working-directory: ../cli-test
|
||||||
|
|
||||||
- name: Run migrations
|
- name: Run migrations
|
||||||
run: medusa migrations run && medusa links sync
|
run: medusa db:migrate
|
||||||
working-directory: ../cli-test
|
working-directory: ../cli-test
|
||||||
|
|
||||||
- name: Create admin user
|
- name: Create admin user
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ export default async ({
|
|||||||
await processManager.runProcess({
|
await processManager.runProcess({
|
||||||
process: async () => {
|
process: async () => {
|
||||||
const proc = await execute(
|
const proc = await execute(
|
||||||
["npx medusa migrations run && npx medusa links sync", npxOptions],
|
["npx medusa db:migrate", npxOptions],
|
||||||
{ verbose, needOutput: true }
|
{ verbose, needOutput: true }
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user