From 91949f02924c3bbe4533bae0eb6b5a63c8a54c39 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 14 Nov 2022 23:27:46 +0000 Subject: [PATCH] Allow anonymous reports --- database.sql | 4 ++-- doc/database/db_report.md | 2 +- static/dbstructure.config.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/database.sql b/database.sql index f471aec907..1a7c0f3731 100644 --- a/database.sql +++ b/database.sql @@ -1,6 +1,6 @@ -- ------------------------------------------ -- Friendica 2022.12-dev (Giant Rhubarb) --- DB_UPDATE_VERSION 1489 +-- DB_UPDATE_VERSION 1490 -- ------------------------------------------ @@ -1651,7 +1651,7 @@ CREATE TABLE IF NOT EXISTS `register` ( -- CREATE TABLE IF NOT EXISTS `report` ( `id` int unsigned NOT NULL auto_increment COMMENT 'sequential ID', - `uid` mediumint unsigned NOT NULL COMMENT 'Reporting user', + `uid` mediumint unsigned COMMENT 'Reporting user', `cid` int unsigned NOT NULL COMMENT 'Reported contact', `comment` text COMMENT 'Report', `forward` boolean COMMENT 'Forward the report to the remote server', diff --git a/doc/database/db_report.md b/doc/database/db_report.md index 6e52636eb3..ababf6472f 100644 --- a/doc/database/db_report.md +++ b/doc/database/db_report.md @@ -9,7 +9,7 @@ Fields | Field | Description | Type | Null | Key | Default | Extra | | ------- | --------------------------------------- | ------------------ | ---- | --- | ------------------- | -------------- | | id | sequential ID | int unsigned | NO | PRI | NULL | auto_increment | -| uid | Reporting user | mediumint unsigned | NO | | NULL | | +| uid | Reporting user | mediumint unsigned | YES | | NULL | | | cid | Reported contact | int unsigned | NO | | NULL | | | comment | Report | text | YES | | NULL | | | forward | Forward the report to the remote server | boolean | YES | | NULL | | diff --git a/static/dbstructure.config.php b/static/dbstructure.config.php index f957596b64..53289addfb 100644 --- a/static/dbstructure.config.php +++ b/static/dbstructure.config.php @@ -55,7 +55,7 @@ use Friendica\Database\DBA; if (!defined('DB_UPDATE_VERSION')) { - define('DB_UPDATE_VERSION', 1489); + define('DB_UPDATE_VERSION', 1490); } return [ @@ -1653,7 +1653,7 @@ return [ "comment" => "", "fields" => [ "id" => ["type" => "int unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1", "comment" => "sequential ID"], - "uid" => ["type" => "mediumint unsigned", "not null" => "1", "foreign" => ["user" => "uid"], "comment" => "Reporting user"], + "uid" => ["type" => "mediumint unsigned", "foreign" => ["user" => "uid"], "comment" => "Reporting user"], "cid" => ["type" => "int unsigned", "not null" => "1", "foreign" => ["contact" => "id"], "comment" => "Reported contact"], "comment" => ["type" => "text", "comment" => "Report"], "forward" => ["type" => "boolean", "comment" => "Forward the report to the remote server"], -- 2.39.5