Merge pull request #3719 from tidusjar/twanariens-patch-1

Changed the creation of MobileDevices to match aspnetusers
pull/3738/head
Jamie 4 years ago committed by GitHub
commit fc2d1ef434
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -11,7 +11,7 @@ namespace Ombi.Store.Migrations.OmbiMySql
migrationBuilder.Sql(@"CREATE TABLE `MobileDevices` (
`Id` int NOT NULL AUTO_INCREMENT,
`Token` longtext CHARACTER SET utf8mb4 NULL,
`UserId` varchar(255) COLLATE utf8mb4_bin NOT NULL,
`UserId` varchar(255) CHARACTER SET utf8mb4 NOT NULL,
`AddedAt` datetime(6) NOT NULL,
CONSTRAINT `PK_MobileDevices` PRIMARY KEY (`Id`),
CONSTRAINT `FK_MobileDevices_AspNetUsers_UserId` FOREIGN KEY (`UserId`) REFERENCES `AspNetUsers` (`Id`) ON DELETE RESTRICT

Loading…
Cancel
Save