Comments (11)
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.
I was able to temporarily resolve the issue by commenting out:
// previewFeatures = ["postgresqlExtensions"]
and
// extensions = [vector]
from prisma.
+1 I'm having the same error!!!
from prisma.
having the same error
from prisma.
Same - does it refer to the new PSQL update?
from prisma.
It must be related to this same issue. Several people in the thread mentioned the same error as yours.
from prisma.
also facing this, working on Ubuntu 20.04 LTS
from prisma.
Same here
from prisma.
Still having this issue
from prisma.
Same issue here
from prisma.
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)
- Sort by property of `Json` field HOT 1
- Error: Could not parse schema engine response: SyntaxError: Unexpected token '/', "/data/data"... is not valid JSON HOT 2
- npx prisma generate gives the download error
- ::INET column type not supported when creating HOT 4
- @prisma/extension-pulse is not exported from package HOT 6
- Disambiguating relations incorrectly auto formatting HOT 7
- Many-to-many relationship not through linking table
- Raw query returning a bigint for an int field HOT 1
- error Command "up" not found. HOT 1
- Repeated alter migrations in Postgres for `String[] @default([]) @db.VarChar(64)`
- In "prisma" mode, executing prisma db pull results in the loss of generated fields.
- Dynamic load relations
- Error Thrown When Sorting Field Is Not Selected HOT 3
- ConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(PostgresError { code: "42P05", message: "prepared statement \"s0\" already exists", severity: "ERROR", detail: None, column: None, hint: None }), transient: false })]
- How to Perform Group By with Date Extraction in Prisma
- Unable to require libquery_engine-debian-openssl-3.0.x.so.node HOT 2
- Hello @bso-oo 👋 HOT 2
- Run Prisma on docker use elysia/Bun js HOT 1
- Inconsistent column data: Malformed ObjectID: provided hex string representation must be exactly 12 bytes, instead got HOT 2
- Support for manually managing prepared statements HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prisma.