mirror of
https://github.com/documize/community.git
synced 2025-07-22 22:59:43 +02:00
Record document search history
This commit is contained in:
parent
4816cf73c0
commit
a6828e6b7f
8 changed files with 110 additions and 37 deletions
28
core/database/scripts/autobuild/db_00020.sql
Normal file
28
core/database/scripts/autobuild/db_00020.sql
Normal file
|
@ -0,0 +1,28 @@
|
|||
/* enterprise edition */
|
||||
|
||||
-- content analytics
|
||||
ALTER TABLE useractivity ADD COLUMN `metadata` VARCHAR(1000) NOT NULL DEFAULT '' AFTER `activitytype`;
|
||||
|
||||
-- content likes/feedback
|
||||
-- DROP TABLE IF EXISTS `vote`;
|
||||
|
||||
-- CREATE TABLE IF NOT EXISTS `vote` (
|
||||
-- `id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
-- `refid` CHAR(16) NOT NULL COLLATE utf8_bin,
|
||||
-- `orgid` CHAR(16) NOT NULL COLLATE utf8_bin,
|
||||
-- `documentid` CHAR(16) NOT NULL COLLATE utf8_bin,
|
||||
-- `userid` CHAR(16) NOT NULL DEFAULT '' COLLATE utf8_bin,
|
||||
-- `vote` INT NOT NULL DEFAULT 0,
|
||||
-- `comment` VARCHAR(300) NOT NULL DEFAULT '',
|
||||
-- `created` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
||||
-- `revised` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
||||
-- UNIQUE INDEX `idx_vote_id` (`id` ASC),
|
||||
-- INDEX `idx_vote_refid` (`refid` ASC),
|
||||
-- INDEX `idx_vote_documentid` (`documentid` ASC),
|
||||
-- INDEX `idx_vote_orgid` (`orgid` ASC))
|
||||
-- DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci
|
||||
-- ENGINE = MyISAM;
|
||||
|
||||
-- CREATE INDEX idx_vote_1 ON vaote(orgid,documentid);
|
||||
|
||||
-- deprecations
|
Loading…
Add table
Add a link
Reference in a new issue