Skip to content

Commit

Permalink
feat(prisma): migrate to latest prisma version - use native prisma mi…
Browse files Browse the repository at this point in the history
…gration
  • Loading branch information
ivashog committed Mar 29, 2021
1 parent 6a9925b commit 25b8716
Show file tree
Hide file tree
Showing 11 changed files with 235 additions and 2,069 deletions.
7 changes: 0 additions & 7 deletions database/_seeds/development/00-noop.seed.ts

This file was deleted.

1 change: 0 additions & 1 deletion database/_seeds/development/index.ts

This file was deleted.

3 changes: 0 additions & 3 deletions database/_seeds/seed.lock

This file was deleted.

85 changes: 0 additions & 85 deletions database/_seeds/seed.ts

This file was deleted.

20 changes: 19 additions & 1 deletion database/schema.prisma
Original file line number Diff line number Diff line change
@@ -1,10 +1,28 @@
generator client {
provider = "prisma-client-js"
// previewFeatures = ["transactionApi"]
}

datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}

model Test {
id Int @id @default(autoincrement())
key String @unique
name String?
geom Unsupported("geometry(Point, 4326)") @map("the_geom")
geomMercator Unsupported("geometry(Point, 3857)")? @map("the_geom_webmercator")
@@map("test")
}

model spatial_ref_sys {
srid Int @id
auth_name String? @db.VarChar(256)
auth_srid Int?
srtext String? @db.VarChar(2048)
proj4text String? @db.VarChar(2048)
@@ignore
}
File renamed without changes.
Loading

0 comments on commit 25b8716

Please sign in to comment.