The table `main.Subscription` does not exist in the current database.
$ git clone git@git.inpt.fr:inp-net/bonfire.git
$ cd bonfire/packages/pwa
$ yarn install
➤ YN0000: ┌ Resolution step
➤ YN0002: │ emuldap@workspace:packages/emuldap doesn't provide prettier (p2921c), requested by prettier-plugin-prisma
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
➤ YN0000: └ Completed in 0s 237ms
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 0s 355ms
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed in 0s 327ms
➤ YN0000: Done with warnings in 0s 981ms
$ yarn prisma db deploy
! Unknown command "deploy"
🏋️ Manage your database schema and lifecycle during development.
Usage
$ prisma db [command] [options]
Options
-h, --help Display this help message
--schema Custom path to your Prisma schema
Commands
pull Pull the state from the database to the Prisma schema using introspection
push Push the state from Prisma schema to the database during prototyping
seed Seed your database
execute Execute native commands to your database (Preview)
Flag
--preview-feature Run Preview Prisma commands
Examples
Run `prisma db pull`
$ prisma db pull
Run `prisma db push`
$ prisma db push
Run `prisma db seed`
$ prisma db seed
Run `prisma db execute` (Preview)
$ prisma db execute --preview-feature
vite v2.8.6 building for production...
✓ 12 modules transformed.
.svelte-kit/output/client/_app/manifest.json 1.15 KiB
.svelte-kit/output/client/_app/layout.svelte-1b793d0b.js 0.53 KiB / gzip: 0.35 KiB
.svelte-kit/output/client/_app/error.svelte-192c56b6.js 1.56 KiB / gzip: 0.75 KiB
.svelte-kit/output/client/_app/pages/index.svelte-65032a58.js 2.73 KiB / gzip: 1.45 KiB
.svelte-kit/output/client/_app/chunks/vendor-5a3c5593.js 7.54 KiB / gzip: 3.11 KiB
.svelte-kit/output/client/_app/start-3d75e778.js 21.17 KiB / gzip: 7.86 KiB
vite v2.8.6 building SSR bundle for production...
✓ 14 modules transformed.
.svelte-kit/output/server/manifest.json 1.31 KiB
.svelte-kit/output/server/index.js 64.41 KiB
.svelte-kit/output/server/entries/endpoints/index.ts.js 0.08 KiB
.svelte-kit/output/server/entries/endpoints/push-register.ts.js 0.24 KiB
.svelte-kit/output/server/entries/endpoints/send-message.ts.js 0.75 KiB
.svelte-kit/output/server/entries/pages/layout.svelte.js 0.24 KiB
.svelte-kit/output/server/entries/pages/error.svelte.js 0.72 KiB
.svelte-kit/output/server/entries/pages/index.svelte.js 0.64 KiB
.svelte-kit/output/server/chunks/index-6c2a5b40.js 2.95 KiB
vite v2.8.6 building for production...
✓ 68 modules transformed.
.svelte-kit/output/client/service-worker.js 34.32 KiB / gzip: 8.01 KiB
Run npm run preview to preview your production build locally.
> Using @sveltejs/adapter-node
✔ done
Listening on 0.0.0.0:3000
Error:
Invalid `prisma.subscription.findMany()` invocation:
The table `main.Subscription` does not exist in the current database.
at Object.request (/home/laurent/Documents/Projects/inp-net/bonfire/packages/pwa/node_modules/@prisma/client/runtime/index.js:39818:15)
at async PrismaClient._request (/home/laurent/Documents/Projects/inp-net/bonfire/packages/pwa/node_modules/@prisma/client/runtime/index.js:40646:18)
at async post (file:///home/laurent/Documents/Projects/inp-net/bonfire/packages/pwa/build/server/entries/endpoints/send-message.ts.js:10:20)
at async render_endpoint (file:///home/laurent/Documents/Projects/inp-net/bonfire/packages/pwa/build/server/index.js:151:20)
at async resolve (file:///home/laurent/Documents/Projects/inp-net/bonfire/packages/pwa/build/server/index.js:1846:53)
at async respond (file:///home/laurent/Documents/Projects/inp-net/bonfire/packages/pwa/build/server/index.js:1769:22)
at async Array.ssr (file:///home/laurent/Documents/Projects/inp-net/bonfire/packages/pwa/build/handler-a8995a71.js:802:3)
By replacing yarn prisma db deploy
by yarn prisma db push
, stuff works normally.