Skip to content

Commit

Permalink
fix migration
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexNi245 committed Aug 7, 2024
1 parent 1afd162 commit 21b79fc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 14 deletions.
8 changes: 0 additions & 8 deletions packages/backend/migrations/20240731092314_/migration.sql

This file was deleted.

2 changes: 0 additions & 2 deletions packages/backend/migrations/20240806084251_/migration.sql

This file was deleted.

2 changes: 2 additions & 0 deletions packages/backend/migrations/20240807075030_/migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Conversation" ADD COLUMN "encryptedProfileLocation" TEXT NOT NULL DEFAULT '';
8 changes: 4 additions & 4 deletions packages/backend/schema.prisma
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
datasource db {
//Use this URL for local development
//url = "postgresql://prisma:prisma@localhost:5433/tests"
url = env("DATABASE_URL")
url = "postgresql://prisma:prisma@localhost:5433/tests"
// url = env("DATABASE_URL")
provider = "postgresql"
}

Expand All @@ -12,7 +12,7 @@ generator client {
model EncryptedMessage {
id String @id
createdAt DateTime @default(now())
encryptedEnvelopContainer String @default("")
encryptedEnvelopContainer String
encryptedContactName String
conversationId String
conversation Conversation @relation(fields: [conversationId], references: [id])
Expand All @@ -25,7 +25,7 @@ model Conversation {
id String @id @default(uuid())
updatedAt DateTime @default(now())
encryptedContactName String
encryptedProfileLocation String
encryptedProfileLocation String @default("")
Message EncryptedMessage[]
Account Account @relation(fields: [accountId], references: [id])
accountId String
Expand Down

0 comments on commit 21b79fc

Please sign in to comment.