mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
add prisma table PK
This commit is contained in:
parent
b46a0c179f
commit
660c810ec1
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue