Some fixes:

- varbinary() is not needed when clear-text words like 'xmpp' are used for them,
  it also hinders using external tools like Adminer/phpMyAdmin to search for
  them as e.g. Adminer wraps a HEX() call (SQL) around `k` and `cat` (see table
  `pconfig`)
- added missing UPDATE::SUCCESS

Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2020-11-14 15:22:56 +01:00
parent 490ce976c1
commit 32e9a4d4d7
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78
3 changed files with 6 additions and 5 deletions

10
static/dbstructure.config.php Executable file → Normal file
View file

@ -54,7 +54,7 @@
use Friendica\Database\DBA;
if (!defined('DB_UPDATE_VERSION')) {
define('DB_UPDATE_VERSION', 1373);
define('DB_UPDATE_VERSION', 1374);
}
return [
@ -1050,11 +1050,11 @@ return [
"pconfig" => [
"comment" => "personal (per user) configuration storage",
"fields" => [
"id" => ["type" => "int unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1", "comment" => ""],
"id" => ["type" => "int unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1", "comment" => "Primary key"],
"uid" => ["type" => "mediumint unsigned", "not null" => "1", "default" => "0", "foreign" => ["user" => "uid"], "comment" => "User id"],
"cat" => ["type" => "varbinary(50)", "not null" => "1", "default" => "", "comment" => ""],
"k" => ["type" => "varbinary(100)", "not null" => "1", "default" => "", "comment" => ""],
"v" => ["type" => "mediumtext", "comment" => ""],
"cat" => ["type" => "varchar(50)", "not null" => "1", "default" => "", "comment" => "Category"],
"k" => ["type" => "varchar(100)", "not null" => "1", "default" => "", "comment" => "Key"],
"v" => ["type" => "mediumtext", "comment" => "Value"],
],
"indexes" => [
"PRIMARY" => ["id"],

0
static/dbview.config.php Executable file → Normal file
View file

View file

@ -747,4 +747,5 @@ function pre_update_1365()
return Update::FAILED;
}
return UPDATE::SUCCESS;
}