I had some odd logs when I used the default commands for build, it seems like two different migration commands got run.
|17:58:49.583 |$ /vercel/workpath0/node_modules/.bin/rw deploy vercel|
|---|---|
|17:58:51.577 |$ /vercel/workpath0/node_modules/.bin/rw build|
|17:58:53.294 |Generating the Prisma client... [started]|
|17:58:56.883 |Generating the Prisma client... [completed]|
|17:58:56.895 |[22:58:56] Building "api"... [started]|
|17:59:00.479 |[22:59:00] Building "api"... [completed]|
|17:59:00.479 |[22:59:00] Building "web"... [started]|
|17:59:59.893 |[22:59:59] Building "web"... [completed]|
|18:00:00.184 |$ /vercel/workpath0/node_modules/.bin/rw prisma migrate deploy|
|18:00:01.839 |Running Prisma CLI:|
|18:00:01.839 |yarn prisma migrate deploy --preview-feature --schema "/vercel/workpath0/api/db/schema.prisma" |
|18:00:02.365 |warn @prisma/cli has been renamed to prisma.|
|18:00:02.365 |Please uninstall @prisma/cli: yarn remove @prisma/cli|
|18:00:02.365 |And install prisma: yarn add prisma|
|18:00:03.013 |Prisma schema loaded from db/schema.prisma|
|18:00:03.058 |Datasource "DS": PostgreSQL database ......|
|18:00:04.757 |11 migrations found in prisma/migrations|
|18:00:05.907 |No pending migrations to apply.|
|18:00:07.271 |$ /vercel/workpath0/node_modules/.bin/rw dataMigrate up|
|18:00:10.882 |[23:00:10] 20210201181912-20210128215616-changelog [started]|
|18:00:11.481 |[23:00:11] 20210201181912-20210128215616-changelog [completed]|
|18:00:11.487 |1 data migration(s) completed successfully.|