mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 04:45:16 +02:00
[Database version 1489] Add new report database tables
This commit is contained in:
parent
e6db31a462
commit
5d9ce80007
5 changed files with 125 additions and 2 deletions
|
@ -55,7 +55,7 @@
|
|||
use Friendica\Database\DBA;
|
||||
|
||||
if (!defined('DB_UPDATE_VERSION')) {
|
||||
define('DB_UPDATE_VERSION', 1488);
|
||||
define('DB_UPDATE_VERSION', 1489);
|
||||
}
|
||||
|
||||
return [
|
||||
|
@ -1649,6 +1649,33 @@ return [
|
|||
"uid" => ["uid"],
|
||||
]
|
||||
],
|
||||
"report" => [
|
||||
"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"],
|
||||
"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"],
|
||||
"created" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => ""],
|
||||
],
|
||||
"indexes" => [
|
||||
"PRIMARY" => ["id"],
|
||||
"uid" => ["uid"],
|
||||
"cid" => ["cid"],
|
||||
]
|
||||
],
|
||||
"report-post" => [
|
||||
"comment" => "",
|
||||
"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"],
|
||||
],
|
||||
"indexes" => [
|
||||
"PRIMARY" => ["rid", "uri-id"],
|
||||
"uri-id" => ["uri-id"],
|
||||
]
|
||||
],
|
||||
"search" => [
|
||||
"comment" => "",
|
||||
"fields" => [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue