mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
User/Cookies
* additional fixes against announcements not staying closed
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
1
setup/updates/1590687329_01.sql
Normal file
1
setup/updates/1590687329_01.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE `aowow_account_cookies` DROP PRIMARY KEY, ADD INDEX `userId` (`userId`) USING BTREE;
|
||||
Reference in New Issue
Block a user