1
0
mirror of https://github.com/bitwarden/server synced 2025-12-27 13:43:18 +00:00

Revert "Fixup device table user FK cascade"

This reverts commit 3d863c0fd1.
This commit is contained in:
Hinton
2025-11-14 14:46:39 +01:00
parent fcdbfcb601
commit 076397dfd4
2 changed files with 1 additions and 11 deletions

View File

@@ -12,7 +12,7 @@
[EncryptedPrivateKey] VARCHAR (MAX) NULL,
[Active] BIT NOT NULL CONSTRAINT [DF_Device_Active] DEFAULT (1),
CONSTRAINT [PK_Device] PRIMARY KEY CLUSTERED ([Id] ASC),
CONSTRAINT [FK_Device_User] FOREIGN KEY ([UserId]) REFERENCES [dbo].[User] ([Id]) ON DELETE CASCADE
CONSTRAINT [FK_Device_User] FOREIGN KEY ([UserId]) REFERENCES [dbo].[User] ([Id])
);
GO