Danny SMc
12/08/2021, 11:52 AMMoneeb
12/08/2021, 2:52 PMgustav
12/08/2021, 3:47 PMfindUnique
matters, is this to be expected?Devin
12/08/2021, 7:15 PMKavan
12/09/2021, 8:56 AM{
select: {
id: true,
a: {
where: {
b_id: b.id
},
select: {
id: true,
name: true
}
},
b: {
select: {
id: true,
name: true
}
}
}
}
Mischa
12/09/2021, 12:12 PMContext: Timed out trying to acquire a postgres advisory lock (SELECT pg_advisory_lock(72707369)). Elapsed: 10000ms. See <https://pris.ly/d/migrate-advisory-locking> for details.
Any idea why I get this when I run my migrations in a Lambda? I’m running against Aurora Serverless Postgres. It prevents me from doing migrations or rollbacks. I go in and manually terminate the backend but it just re-appears when I run migrations next.Leonard Filip
12/09/2021, 12:58 PMuuid()
. Having this entity:
model Tag {
id String @id @default(dbgenerated("(uuid())")) @db.Char(36)
name String
description String? @db.Text
slug String
isTopic Boolean @default(false)
articles Article[]
}
When trying to insert a row via Prisma Studio (or via a prisma.tag.create
inside seed.ts
), I get this error:
Message:
Invalid `prisma.tag.create()` invocation:
Could not figure out an ID in create
Query:
prisma.tag.create(
{
data: {
name: "science",
description: "science description",
slug: "science",
isTopic: false,
articles: {
},
},
select: {
id: true,
name: true,
description: true,
slug: true,
isTopic: true,
articles: true,
},
}
I guess Prisma doesn’t see any id and since it is a mandatory field, it throws this. Shouldn’t the dbgenerated
attribute tell Prisma “hey, no need to provide the id upon create, the db will generate it!“?Akshay Kadam (A2K)
12/09/2021, 12:59 PMselectedId
equal to the id
that was recently created by prisma when using .create()
? i need this bcz i want to keep track of selected id on the server-side?Matt Matheson
12/09/2021, 6:16 PMDevi Prasad
12/09/2021, 7:08 PMPedro J Poveda
12/09/2021, 7:47 PMJ
12/10/2021, 11:12 AMNichita Z
12/10/2021, 1:10 PMItalo Gama
12/10/2021, 1:20 PMShmuel
12/10/2021, 2:14 PMprisma migrate deploy
run prisma generate
as well?Vladislav
12/10/2021, 6:15 PMJon Crowell
12/10/2021, 10:12 PMhostNameInCertificate=*.database
but when I save it becomes
hostNameInCertificate=\*.database
Blakelock Brown
12/11/2021, 2:29 AMBlakelock Brown
12/11/2021, 2:52 AMRowland
12/11/2021, 3:19 AM.runMigrations
and connection.query(<stingified sql file content>)
Michael Reh
12/11/2021, 11:07 AMuser
12/11/2021, 3:35 PMSebastian Crossa
12/11/2021, 5:39 PMSebastian Crossa
12/11/2021, 5:40 PMCymak
12/11/2021, 5:54 PMCymak
12/11/2021, 5:55 PMElie Steinbock
12/11/2021, 9:29 PMSimoh 2k
12/12/2021, 2:31 AMconst today = new Date();
const date =
today.getFullYear() +
'-' +
(today.getMonth() + 1) +
'-' +
today.getDate();
console.log('DATEEE', date);
const data = await this.prisma.ticket.findMany({
where: {
createdAt: date,
},
});
console.log(data);
Simoh 2k
12/12/2021, 2:33 AMCymak
12/12/2021, 3:51 AM