]> git.mxchange.org Git - friendica.git/commitdiff
Added status to the report
authorMichael <heluecht@pirati.ca>
Tue, 29 Nov 2022 19:50:12 +0000 (19:50 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 29 Nov 2022 19:50:12 +0000 (19:50 +0000)
database.sql
doc/database/db_report-post.md
doc/database/db_report.md
static/dbstructure.config.php

index 596dfa47085f6814acb6d10601c0efb3b9b2bd60..4e940b3197f9d3dc9f48abc91f84fbef337a6d3b 100644 (file)
@@ -1,6 +1,6 @@
 -- ------------------------------------------
 -- Friendica 2022.12-dev (Giant Rhubarb)
--- DB_UPDATE_VERSION 1494
+-- DB_UPDATE_VERSION 1495
 -- ------------------------------------------
 
 
@@ -1656,6 +1656,7 @@ CREATE TABLE IF NOT EXISTS `report` (
        `comment` text COMMENT 'Report',
        `forward` boolean COMMENT 'Forward the report to the remote server',
        `created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT '',
+       `status` tinyint unsigned COMMENT 'Status of the report',
         PRIMARY KEY(`id`),
         INDEX `uid` (`uid`),
         INDEX `cid` (`cid`),
@@ -1669,6 +1670,7 @@ CREATE TABLE IF NOT EXISTS `report` (
 CREATE TABLE IF NOT EXISTS `report-post` (
        `rid` int unsigned NOT NULL COMMENT 'Report id',
        `uri-id` int unsigned NOT NULL COMMENT 'Uri-id of the reported post',
+       `status` tinyint unsigned COMMENT 'Status of the reported post',
         PRIMARY KEY(`rid`,`uri-id`),
         INDEX `uri-id` (`uri-id`),
        FOREIGN KEY (`rid`) REFERENCES `report` (`id`) ON UPDATE RESTRICT ON DELETE CASCADE,
index 303aa3256f6c60db379cdb1df069d0f4c96759fe..fcaff6c2e48f88f5c71c8c9e11c801dcc1fa90c0 100644 (file)
@@ -6,10 +6,11 @@ Table report-post
 Fields
 ------
 
-| Field  | Description                 | Type         | Null | Key | Default | Extra |
-| ------ | --------------------------- | ------------ | ---- | --- | ------- | ----- |
-| rid    | Report id                   | int unsigned | NO   | PRI | NULL    |       |
-| uri-id | Uri-id of the reported post | int unsigned | NO   | PRI | NULL    |       |
+| Field  | Description                 | Type             | Null | Key | Default | Extra |
+| ------ | --------------------------- | ---------------- | ---- | --- | ------- | ----- |
+| rid    | Report id                   | int unsigned     | NO   | PRI | NULL    |       |
+| uri-id | Uri-id of the reported post | int unsigned     | NO   | PRI | NULL    |       |
+| status | Status of the reported post | tinyint unsigned | YES  |     | NULL    |       |
 
 Indexes
 ------------
index ababf6472f3602fdc2a52c6115fdeae3282f5cfb..9a87abe1f4c459d583eff0e737e4d977d75ea02c 100644 (file)
@@ -14,6 +14,7 @@ Fields
 | comment | Report                                  | text               | YES  |     | NULL                |                |
 | forward | Forward the report to the remote server | boolean            | YES  |     | NULL                |                |
 | created |                                         | datetime           | NO   |     | 0001-01-01 00:00:00 |                |
+| status  | Status of the report                    | tinyint unsigned   | YES  |     | NULL                |                |
 
 Indexes
 ------------
index a72f17032e3dce7ff96ef0446622beefd05c04c6..9ec2ae52ed50cfa44236e16ccea0c47265e20e8d 100644 (file)
@@ -55,7 +55,7 @@
 use Friendica\Database\DBA;
 
 if (!defined('DB_UPDATE_VERSION')) {
-       define('DB_UPDATE_VERSION', 1494);
+       define('DB_UPDATE_VERSION', 1495);
 }
 
 return [
@@ -1658,6 +1658,7 @@ return [
                        "comment" => ["type" => "text", "comment" => "Report"],
                        "forward" => ["type" => "boolean", "comment" => "Forward the report to the remote server"],
                        "created" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => ""],
+                       "status" => ["type" => "tinyint unsigned", "comment" => "Status of the report"],
                ],
                "indexes" => [
                        "PRIMARY" => ["id"],
@@ -1670,6 +1671,7 @@ return [
                "fields" => [
                        "rid" => ["type" => "int unsigned", "not null" => "1", "primary" => "1", "foreign" => ["report" => "id"], "comment" => "Report id"],
                        "uri-id" => ["type" => "int unsigned", "not null" => "1", "primary" => "1", "foreign" => ["item-uri" => "id"], "comment" => "Uri-id of the reported post"],
+                       "status" => ["type" => "tinyint unsigned", "comment" => "Status of the reported post"],
                ],
                "indexes" => [
                        "PRIMARY" => ["rid", "uri-id"],