X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=static%2Fdbstructure.config.php;h=41515681e4a17a9050d624f13001a885f18e82a7;hb=6ca42512e98296ac3464a85721be4cf9cb6c89fc;hp=052f73b9cf94e38d5d50026947f6dc4a771a3c33;hpb=626eea8c38db7798446966e7a9ec5982f42e7d2d;p=friendica.git diff --git a/static/dbstructure.config.php b/static/dbstructure.config.php index 052f73b9cf..41515681e4 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', 1415); + define('DB_UPDATE_VERSION', 1416); } return [ @@ -442,6 +442,20 @@ return [ "client_id" => ["UNIQUE", "client_id"] ] ], + "application-token" => [ + "comment" => "OAuth user token", + "fields" => [ + "application-id" => ["type" => "int unsigned", "not null" => "1", "primary" => "1", "foreign" => ["application" => "id"], "comment" => ""], + "uid" => ["type" => "mediumint unsigned", "not null" => "1", "primary" => "1", "foreign" => ["user" => "uid"], "comment" => "Owner User id"], + "code" => ["type" => "varchar(64)", "not null" => "1", "comment" => ""], + "access_token" => ["type" => "varchar(64)", "not null" => "1", "comment" => ""], + "created_at" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => "creation time"], + ], + "indexes" => [ + "PRIMARY" => ["application-id", "uid"], + "uid_id" => ["uid", "application-id"], + ] + ], "attach" => [ "comment" => "file attachments", "fields" => [