]> git.mxchange.org Git - friendica.git/commitdiff
Fix a problem with MySQL
authorMichael <heluecht@pirati.ca>
Thu, 11 Jan 2024 07:01:48 +0000 (07:01 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 28 Jan 2024 15:37:43 +0000 (16:37 +0100)
database.sql
doc/database/db_post-engagement.md
static/dbstructure.config.php

index b05696e7da805b6656f4df797a9281c9f4d3c260..81fcf04c167c08fbc6ab6d4e72f773f7ec33c134 100644 (file)
@@ -1345,7 +1345,7 @@ CREATE TABLE IF NOT EXISTS `post-engagement` (
        `owner-id` int unsigned NOT NULL DEFAULT 0 COMMENT 'Item owner',
        `contact-type` tinyint NOT NULL DEFAULT 0 COMMENT 'Person, organisation, news, community, relay',
        `media-type` tinyint NOT NULL DEFAULT 0 COMMENT 'Type of media in a bit array (1 = image, 2 = video, 4 = audio',
-       `language` varbinary(128) COMMENT 'Language information about this post',
+       `language` varchar(128) COMMENT 'Language information about this post',
        `searchtext` mediumtext COMMENT 'Simplified text for the full text search',
        `created` datetime COMMENT '',
        `restricted` boolean NOT NULL DEFAULT '0' COMMENT 'If true, this post is either unlisted or not from a federated network',
index edca447f3d4ddbbdded372007ef692cd8fd6ffa7..e63f170b76c771091748471593e87b2290574828 100644 (file)
@@ -12,7 +12,7 @@ Fields
 | owner-id     | Item owner                                                            | int unsigned       | NO   |     | 0       |       |
 | contact-type | Person, organisation, news, community, relay                          | tinyint            | NO   |     | 0       |       |
 | media-type   | Type of media in a bit array (1 = image, 2 = video, 4 = audio         | tinyint            | NO   |     | 0       |       |
-| language     | Language information about this post                                  | varbinary(128)     | YES  |     | NULL    |       |
+| language     | Language information about this post                                  | varchar(128)       | YES  |     | NULL    |       |
 | searchtext   | Simplified text for the full text search                              | mediumtext         | YES  |     | NULL    |       |
 | created      |                                                                       | datetime           | YES  |     | NULL    |       |
 | restricted   | If true, this post is either unlisted or not from a federated network | boolean            | NO   |     | 0       |       |
index 1b49cac74a8c5274ee6d013da8661f8f7fea0aa0..247c59cffca6758946e19b11a29468cffea95c92 100644 (file)
@@ -1366,7 +1366,7 @@ return [
                        "owner-id" => ["type" => "int unsigned", "not null" => "1", "default" => "0", "foreign" => ["contact" => "id"], "comment" => "Item owner"],
                        "contact-type" => ["type" => "tinyint", "not null" => "1", "default" => "0", "comment" => "Person, organisation, news, community, relay"],
                        "media-type" => ["type" => "tinyint", "not null" => "1", "default" => "0", "comment" => "Type of media in a bit array (1 = image, 2 = video, 4 = audio"],
-                       "language" => ["type" => "varbinary(128)", "comment" => "Language information about this post"],
+                       "language" => ["type" => "varchar(128)", "comment" => "Language information about this post"],
                        "searchtext" => ["type" => "mediumtext", "comment" => "Simplified text for the full text search"],
                        "created" => ["type" => "datetime", "comment" => ""],
                        "restricted" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => "If true, this post is either unlisted or not from a federated network"],