mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-24 18:26:20 +01:00
add prisma table PK
This commit is contained in:
parent
b46a0c179f
commit
660c810ec1
@ -46,6 +46,7 @@ async function checkTables() {
|
||||
async function dropKeys() {
|
||||
try {
|
||||
// drop keys
|
||||
await prisma.$executeRaw`ALTER TABLE IF EXISTS "_prisma_migrations" DROP CONSTRAINT IF EXISTS "_prisma_migrations_pkey" cascade;`;
|
||||
await prisma.$executeRaw`ALTER TABLE IF EXISTS "account" DROP CONSTRAINT IF EXISTS "account_pkey" cascade;`;
|
||||
await prisma.$executeRaw`ALTER TABLE IF EXISTS "event" DROP CONSTRAINT IF EXISTS "event_pkey" cascade;`;
|
||||
await prisma.$executeRaw`ALTER TABLE IF EXISTS "session" DROP CONSTRAINT IF EXISTS "session_pkey" cascade;`;
|
||||
|
Loading…
Reference in New Issue
Block a user