Prisma1: Warn when CLI and Server are out of sync

Created on 5 Feb 2019  路  4Comments  路  Source: prisma/prisma1

When prisma deploy is executed and the server and cli version have a different minor version (a different x in 1.x), the CLI should print a warning that this may result in unwanted behavior.

kinfeature arecli rf0-needs-spec

Most helpful comment

In my opinion it should not be possible to disable this warning.

All 4 comments

Warning with yellow text can be emitted as

Warning: your Prisma server and Prisma CLI versions are out of sync, they should be on the same minor version. 

Prisma CLI version: 1.x
Prisma server version: 1.y

Here, x, y would be filled dynamically.

But we can imagine a scenario where the user is on an older version of server for reasons (matching production etc) and they would want the warning disabled. If users want this then we can introduce an environment variable PRISMA_NO_VERSION_WARNING or something to make this warning go away.

In my opinion it should not be possible to disable this warning.

This RFC https://github.com/prisma/rfcs/pull/9 has the detailed discussion around this feature.

This is available in the latest stable 1.31.1. Please install this via npm install -g prisma.

I am closing this issue, please open a new issue again if necessary.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AlessandroAnnini picture AlessandroAnnini  路  3Comments

tbrannam picture tbrannam  路  3Comments

akoenig picture akoenig  路  3Comments

sedubois picture sedubois  路  3Comments

schickling picture schickling  路  3Comments