]> git.mxchange.org Git - friendica.git/commitdiff
add the homepage_verified field to the profile table and the owner-view
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Sat, 5 Nov 2022 14:37:13 +0000 (15:37 +0100)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Mon, 7 Nov 2022 10:15:55 +0000 (11:15 +0100)
database.sql
doc/database/db_profile.md
static/dbstructure.config.php
static/dbview.config.php

index ab8c300a88ad30383cfd70e8f1ca384b65706825..891b830a4391354c50940296c4f7a86a4bd1f512 100644 (file)
@@ -1,6 +1,6 @@
 -- ------------------------------------------
 -- Friendica 2022.12-dev (Giant Rhubarb)
--- DB_UPDATE_VERSION 1486
+-- DB_UPDATE_VERSION 1487
 -- ------------------------------------------
 
 
@@ -1577,6 +1577,7 @@ CREATE TABLE IF NOT EXISTS `profile` (
        `education` text COMMENT 'Deprecated',
        `contact` text COMMENT 'Deprecated',
        `homepage` varchar(255) NOT NULL DEFAULT '' COMMENT '',
+       `homepage_verified` boolean NOT NULL DEFAULT '0' COMMENT 'was the homepage verified by a rel-me link back to the profile',
        `xmpp` varchar(255) NOT NULL DEFAULT '' COMMENT 'XMPP address',
        `matrix` varchar(255) NOT NULL DEFAULT '' COMMENT 'Matrix address',
        `photo` varbinary(383) NOT NULL DEFAULT '' COMMENT '',
@@ -2674,6 +2675,7 @@ CREATE VIEW `owner-view` AS SELECT
        `profile`.`postal-code` AS `postal-code`,
        `profile`.`country-name` AS `country-name`,
        `profile`.`homepage` AS `homepage`,
+       `profile`.`homepage_verified` AS `homepage_verified`,
        `profile`.`dob` AS `dob`
        FROM `user`
                        INNER JOIN `contact` ON `contact`.`uid` = `user`.`uid` AND `contact`.`self`
index c180332c5b037a0cff9cdd7d6b6223b25fe782c8..ec47b94ec6d72c71e3fdc929dda02da3bed564b5 100644 (file)
@@ -6,51 +6,52 @@ user profiles data
 Fields
 ------
 
-| Field        | Description                                   | Type               | Null | Key | Default    | Extra          |
-| ------------ | --------------------------------------------- | ------------------ | ---- | --- | ---------- | -------------- |
-| id           | sequential ID                                 | int unsigned       | NO   | PRI | NULL       | auto_increment |
-| uid          | Owner User id                                 | mediumint unsigned | NO   |     | 0          |                |
-| profile-name | Deprecated                                    | varchar(255)       | YES  |     | NULL       |                |
-| is-default   | Deprecated                                    | boolean            | YES  |     | NULL       |                |
-| hide-friends | Hide friend list from viewers of this profile | boolean            | NO   |     | 0          |                |
-| name         |                                               | varchar(255)       | NO   |     |            |                |
-| pdesc        | Deprecated                                    | varchar(255)       | YES  |     | NULL       |                |
-| dob          | Day of birth                                  | varchar(32)        | NO   |     | 0000-00-00 |                |
-| address      |                                               | varchar(255)       | NO   |     |            |                |
-| locality     |                                               | varchar(255)       | NO   |     |            |                |
-| region       |                                               | varchar(255)       | NO   |     |            |                |
-| postal-code  |                                               | varchar(32)        | NO   |     |            |                |
-| country-name |                                               | varchar(255)       | NO   |     |            |                |
-| hometown     | Deprecated                                    | varchar(255)       | YES  |     | NULL       |                |
-| gender       | Deprecated                                    | varchar(32)        | YES  |     | NULL       |                |
-| marital      | Deprecated                                    | varchar(255)       | YES  |     | NULL       |                |
-| with         | Deprecated                                    | text               | YES  |     | NULL       |                |
-| howlong      | Deprecated                                    | datetime           | YES  |     | NULL       |                |
-| sexual       | Deprecated                                    | varchar(255)       | YES  |     | NULL       |                |
-| politic      | Deprecated                                    | varchar(255)       | YES  |     | NULL       |                |
-| religion     | Deprecated                                    | varchar(255)       | YES  |     | NULL       |                |
-| pub_keywords |                                               | text               | YES  |     | NULL       |                |
-| prv_keywords |                                               | text               | YES  |     | NULL       |                |
-| likes        | Deprecated                                    | text               | YES  |     | NULL       |                |
-| dislikes     | Deprecated                                    | text               | YES  |     | NULL       |                |
-| about        | Profile description                           | text               | YES  |     | NULL       |                |
-| summary      | Deprecated                                    | varchar(255)       | YES  |     | NULL       |                |
-| music        | Deprecated                                    | text               | YES  |     | NULL       |                |
-| book         | Deprecated                                    | text               | YES  |     | NULL       |                |
-| tv           | Deprecated                                    | text               | YES  |     | NULL       |                |
-| film         | Deprecated                                    | text               | YES  |     | NULL       |                |
-| interest     | Deprecated                                    | text               | YES  |     | NULL       |                |
-| romance      | Deprecated                                    | text               | YES  |     | NULL       |                |
-| work         | Deprecated                                    | text               | YES  |     | NULL       |                |
-| education    | Deprecated                                    | text               | YES  |     | NULL       |                |
-| contact      | Deprecated                                    | text               | YES  |     | NULL       |                |
-| homepage     |                                               | varchar(255)       | NO   |     |            |                |
-| xmpp         | XMPP address                                  | varchar(255)       | NO   |     |            |                |
-| matrix       | Matrix address                                | varchar(255)       | NO   |     |            |                |
-| photo        |                                               | varbinary(383)     | NO   |     |            |                |
-| thumb        |                                               | varbinary(383)     | NO   |     |            |                |
-| publish      | publish default profile in local directory    | boolean            | NO   |     | 0          |                |
-| net-publish  | publish profile in global directory           | boolean            | NO   |     | 0          |                |
+| Field             | Description                                                    | Type               | Null | Key | Default    | Extra          |
+| ----------------- | -------------------------------------------------------------- | ------------------ | ---- | --- | ---------- | -------------- |
+| id                | sequential ID                                                  | int unsigned       | NO   | PRI | NULL       | auto_increment |
+| uid               | Owner User id                                                  | mediumint unsigned | NO   |     | 0          |                |
+| profile-name      | Deprecated                                                     | varchar(255)       | YES  |     | NULL       |                |
+| is-default        | Deprecated                                                     | boolean            | YES  |     | NULL       |                |
+| hide-friends      | Hide friend list from viewers of this profile                  | boolean            | NO   |     | 0          |                |
+| name              |                                                                | varchar(255)       | NO   |     |            |                |
+| pdesc             | Deprecated                                                     | varchar(255)       | YES  |     | NULL       |                |
+| dob               | Day of birth                                                   | varchar(32)        | NO   |     | 0000-00-00 |                |
+| address           |                                                                | varchar(255)       | NO   |     |            |                |
+| locality          |                                                                | varchar(255)       | NO   |     |            |                |
+| region            |                                                                | varchar(255)       | NO   |     |            |                |
+| postal-code       |                                                                | varchar(32)        | NO   |     |            |                |
+| country-name      |                                                                | varchar(255)       | NO   |     |            |                |
+| hometown          | Deprecated                                                     | varchar(255)       | YES  |     | NULL       |                |
+| gender            | Deprecated                                                     | varchar(32)        | YES  |     | NULL       |                |
+| marital           | Deprecated                                                     | varchar(255)       | YES  |     | NULL       |                |
+| with              | Deprecated                                                     | text               | YES  |     | NULL       |                |
+| howlong           | Deprecated                                                     | datetime           | YES  |     | NULL       |                |
+| sexual            | Deprecated                                                     | varchar(255)       | YES  |     | NULL       |                |
+| politic           | Deprecated                                                     | varchar(255)       | YES  |     | NULL       |                |
+| religion          | Deprecated                                                     | varchar(255)       | YES  |     | NULL       |                |
+| pub_keywords      |                                                                | text               | YES  |     | NULL       |                |
+| prv_keywords      |                                                                | text               | YES  |     | NULL       |                |
+| likes             | Deprecated                                                     | text               | YES  |     | NULL       |                |
+| dislikes          | Deprecated                                                     | text               | YES  |     | NULL       |                |
+| about             | Profile description                                            | text               | YES  |     | NULL       |                |
+| summary           | Deprecated                                                     | varchar(255)       | YES  |     | NULL       |                |
+| music             | Deprecated                                                     | text               | YES  |     | NULL       |                |
+| book              | Deprecated                                                     | text               | YES  |     | NULL       |                |
+| tv                | Deprecated                                                     | text               | YES  |     | NULL       |                |
+| film              | Deprecated                                                     | text               | YES  |     | NULL       |                |
+| interest          | Deprecated                                                     | text               | YES  |     | NULL       |                |
+| romance           | Deprecated                                                     | text               | YES  |     | NULL       |                |
+| work              | Deprecated                                                     | text               | YES  |     | NULL       |                |
+| education         | Deprecated                                                     | text               | YES  |     | NULL       |                |
+| contact           | Deprecated                                                     | text               | YES  |     | NULL       |                |
+| homepage          |                                                                | varchar(255)       | NO   |     |            |                |
+| homepage_verified | was the homepage verified by a rel-me link back to the profile | boolean            | NO   |     | 0          |                |
+| xmpp              | XMPP address                                                   | varchar(255)       | NO   |     |            |                |
+| matrix            | Matrix address                                                 | varchar(255)       | NO   |     |            |                |
+| photo             |                                                                | varbinary(383)     | NO   |     |            |                |
+| thumb             |                                                                | varbinary(383)     | NO   |     |            |                |
+| publish           | publish default profile in local directory                     | boolean            | NO   |     | 0          |                |
+| net-publish       | publish profile in global directory                            | boolean            | NO   |     | 0          |                |
 
 Indexes
 ------------
index 262d7d307fbc90103adaceebcad2588f598a47b6..79b1539f86ca6b428f597d00e8276f813bbfb2d9 100644 (file)
@@ -55,7 +55,7 @@
 use Friendica\Database\DBA;
 
 if (!defined('DB_UPDATE_VERSION')) {
-       define('DB_UPDATE_VERSION', 1486);
+       define('DB_UPDATE_VERSION', 1487);
 }
 
 return [
@@ -1580,6 +1580,7 @@ return [
                        "education" => ["type" => "text", "comment" => "Deprecated"],
                        "contact" => ["type" => "text", "comment" => "Deprecated"],
                        "homepage" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
+                       "homepage_verified" => ["type" => "boolean", "not null" => 1, "default" => "0", "comment" => "was the homepage verified by a rel-me link back to the profile"],
                        "xmpp" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => "XMPP address"],
                        "matrix" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => "Matrix address"],
                        "photo" => ["type" => "varbinary(383)", "not null" => "1", "default" => "", "comment" => ""],
index c12cccb4cc22e591ed2b63a941049bd0f54518d2..925f82462525f5866bb61ac8595d530fd4b5fa62 100644 (file)
                        "postal-code" => ["profile", "postal-code"],
                        "country-name" => ["profile", "country-name"],
                        "homepage" => ["profile", "homepage"],
+                       "homepage_verified" => ["profile", "homepage_verified"],
                        "dob" => ["profile", "dob"],
                ],
                "query" => "FROM `user`