User/Cookies

* additional fixes against announcements not staying closed
This commit is contained in:
Sarjuuk
2020-05-28 19:37:54 +02:00
parent d22e90ca85
commit 366bdf54a6
2 changed files with 4 additions and 3 deletions

View File

@@ -100,8 +100,8 @@ CREATE TABLE `aowow_account_cookies` (
`userId` int(10) unsigned NOT NULL,
`name` varchar(127) COLLATE utf8mb4_unicode_ci NOT NULL,
`data` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`userId`),
UNIQUE KEY `userId_name` (`userId`,`name`),
INDEX `userId` (`userId`) USING BTREE,
UNIQUE KEY `userId_name` (`userId`,`name`) USING BTREE,
CONSTRAINT `FK_acc_cookies` FOREIGN KEY (`userId`) REFERENCES `aowow_account` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -3138,7 +3138,7 @@ UNLOCK TABLES;
LOCK TABLES `aowow_dbversion` WRITE;
/*!40000 ALTER TABLE `aowow_dbversion` DISABLE KEYS */;
INSERT INTO `aowow_dbversion` VALUES (1590506555,0,NULL,NULL);
INSERT INTO `aowow_dbversion` VALUES (1590687330,0,NULL,NULL);
/*!40000 ALTER TABLE `aowow_dbversion` ENABLE KEYS */;
UNLOCK TABLES;

View File

@@ -0,0 +1 @@
ALTER TABLE `aowow_account_cookies` DROP PRIMARY KEY, ADD INDEX `userId` (`userId`) USING BTREE;