Vinny
05/24/2023, 2:09 PMjs
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
extensions = [pgvector(map: "vector", schema: "extensions")]
}
generator client {
provider = "prisma-client-js"
output = env("PRISMA_CLIENT_OUTPUT_DIR")
previewFeatures = ["postgresqlExtensions"]
}
model Text {
id Int @id @default(autoincrement())
title String
content String
vector Unsupported("vector (1536)")
}
My initial migration works, but I keep getting this error on subsequent migrations:
ERROR: schema "extensions" does not exist
Vinny
05/24/2023, 3:10 PMjs
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
shadowDatabaseUrl = env("SHADOW_DATABASE_URL")
extensions = [pgvector(map: "vector", schema: "extensions")]
}
generator client {
provider = "prisma-client-js"
output = env("PRISMA_CLIENT_OUTPUT_DIR")
previewFeatures = ["postgresqlExtensions"]
}