New class for handling delayed posts

This commit is contained in:
Michael
2020-12-01 22:11:29 +00:00
parent aa4372447a
commit 2aa302c570
4 changed files with 149 additions and 25 deletions

View File

@@ -55,7 +55,7 @@
use Friendica\Database\DBA;
if (!defined('DB_UPDATE_VERSION')) {
define('DB_UPDATE_VERSION', 1381);
define('DB_UPDATE_VERSION', 1382);
}
return [
@@ -527,6 +527,19 @@ return [
"received" => ["received"],
]
],
"delayed-post" => [
"comment" => "Posts that are about to be posted at a later time",
"fields" => [
"id" => ["type" => "int unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1"],
"uri" => ["type" => "varchar(255)", "comment" => "URI of the post that will be posted later"],
"uid" => ["type" => "mediumint unsigned", "foreign" => ["user" => "uid"], "comment" => "Owner User id"],
"delayed" => ["type" => "datetime", "comment" => "delay time"],
],
"indexes" => [
"PRIMARY" => ["id"],
"url" => ["UNIQUE", "url"],
]
],
"diaspora-interaction" => [
"comment" => "Signed Diaspora Interaction",
"fields" => [