Skip to content

Commit ce6d60d

Browse files
committed
fix(exporter): 최신 Prisma 형식에 맞춰 datasource url 줄 제거
1 parent 2f4095b commit ce6d60d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • crates/vespertide-exporter/src/prisma

crates/vespertide-exporter/src/prisma/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,12 @@ impl<'a> PrismaExporterWithConfig<'a> {
8383

8484
let mut parts: Vec<String> = Vec::new();
8585

86+
// No `url` here: current Prisma moved connection config out of the
87+
// schema file (`prisma.config.ts`), which also matches vespertide's
88+
// models-only scope.
8689
let mut datasource = vec![
8790
"datasource db {".to_string(),
8891
format!(" provider = \"{}\"", self.provider.as_datasource_str()),
89-
" url = env(\"DATABASE_URL\")".to_string(),
9092
];
9193
if let Some(rm) = self.config.relation_mode() {
9294
datasource.push(format!(" relationMode = \"{}\"", rm.as_str()));

0 commit comments

Comments
 (0)