mirror of
https://github.com/friendica/friendica
synced 2024-11-09 23:42:53 +00:00
Update SQL scripts for cache table
This commit is contained in:
parent
3628b62aeb
commit
4b361747a0
2 changed files with 31 additions and 16 deletions
16
database.sql
16
database.sql
|
@ -1,6 +1,6 @@
|
||||||
-- ------------------------------------------
|
-- ------------------------------------------
|
||||||
-- Friendica 3.6-dev (Asparagus)
|
-- Friendica 3.6-dev (Asparagus)
|
||||||
-- DB_UPDATE_VERSION 1255
|
-- DB_UPDATE_VERSION 1256
|
||||||
-- ------------------------------------------
|
-- ------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
@ -55,13 +55,13 @@ CREATE TABLE IF NOT EXISTS `auth_codes` (
|
||||||
-- TABLE cache
|
-- TABLE cache
|
||||||
--
|
--
|
||||||
CREATE TABLE IF NOT EXISTS `cache` (
|
CREATE TABLE IF NOT EXISTS `cache` (
|
||||||
`k` varbinary(255) NOT NULL COMMENT '',
|
`k` varbinary(255) NOT NULL COMMENT 'cache key',
|
||||||
`v` mediumtext COMMENT '',
|
`v` mediumtext COMMENT 'cached serialized value',
|
||||||
`expire_mode` tinyint unsigned NOT NULL DEFAULT 0 COMMENT '',
|
`expires` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT 'datetime of cache expiration',
|
||||||
`updated` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT '',
|
`updated` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT 'datetime of cache insertion',
|
||||||
PRIMARY KEY(`k`),
|
PRIMARY KEY (`k`),
|
||||||
INDEX `expire_mode_updated` (`expire_mode`,`updated`)
|
KEY `k_expires` (`k`,`expires`) USING BTREE
|
||||||
) DEFAULT COLLATE utf8mb4_general_ci;
|
) DEFAULT COLLATE utf8mb4_general_ci COMMENT='Stores temporary data';
|
||||||
|
|
||||||
--
|
--
|
||||||
-- TABLE challenge
|
-- TABLE challenge
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue