Code Monkey home page Code Monkey logo

Comments (11)

vitorelourenco avatar vitorelourenco commented on May 25, 2024 3

Solved it for my case. Idk how the prisma shadow db works but I had a feeling this had to with extensions versions. So I wrote my own migration like this:

CREATE EXTENSION IF NOT EXISTS vector;
ALTER EXTENSION vector UPDATE TO '0.5.0';

Because I knew my version was 0.5.0 by doing:

SELECT * from pg_extension;

Then I got this error messaage:

Migration `0_init` failed to apply cleanly to the shadow database. 
Error:
ERROR: extension "vector" has no update path from version "0.5.1" to version "0.5.0"
   0: schema_core::state::DevDiagnostic
             at schema-engine/core/src/state.rs:267

So it did seem like a version problem. So I went into my db and did

ALTER EXTENSION vector UPDATE TO '0.5.1';

And there it was, drift is gone.

from prisma.

levz0r avatar levz0r commented on May 25, 2024 1

I was able to temporarily resolve the issue by commenting out:

  // previewFeatures = ["postgresqlExtensions"]

and

// extensions = [vector]

from prisma.

annabkis avatar annabkis commented on May 25, 2024

+1 I'm having the same error!!!

from prisma.

moritzhwnr avatar moritzhwnr commented on May 25, 2024

having the same error

from prisma.

jsscotty avatar jsscotty commented on May 25, 2024

Same - does it refer to the new PSQL update?

from prisma.

nguaman avatar nguaman commented on May 25, 2024

It must be related to this same issue. Several people in the thread mentioned the same error as yours.

#18442

from prisma.

chrisblona avatar chrisblona commented on May 25, 2024

also facing this, working on Ubuntu 20.04 LTS

from prisma.

pedromnasc avatar pedromnasc commented on May 25, 2024

Same here

from prisma.

vitorelourenco avatar vitorelourenco commented on May 25, 2024

Still having this issue

from prisma.

lukebelbina avatar lukebelbina commented on May 25, 2024

Same issue here

from prisma.

julienfdev avatar julienfdev commented on May 25, 2024

For people that still have an issue not related to versions, another issue can be that the introspected databases declared the extensions on particular schemas, for example, i had an issue with citext :

[*] Changed the `citext` extension

My initial migration was generating :

CREATE EXTENSION IF NOT EXISTS "citext";

I decided to pg_dump the original database :

CREATE EXTENSION IF NOT EXISTS "citext" WITH SCHEMA "pg_catalog";

I just replaced the line in my 0_init migration, the warning was gone and my schema in sync 🍾

from prisma.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.