mirror of
https://github.com/friendica/friendica
synced 2024-11-10 07:42:53 +00:00
Merge pull request #9532 from Quix0r/fixes/pconfig-k-cat-varchar
Some fixes: not needed varbinary and missing UPDATE::SUCCESS
This commit is contained in:
commit
37a122bf7c
3 changed files with 6 additions and 5 deletions
10
static/dbstructure.config.php
Executable file → Normal file
10
static/dbstructure.config.php
Executable file → Normal file
|
@ -54,7 +54,7 @@
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
|
|
||||||
if (!defined('DB_UPDATE_VERSION')) {
|
if (!defined('DB_UPDATE_VERSION')) {
|
||||||
define('DB_UPDATE_VERSION', 1373);
|
define('DB_UPDATE_VERSION', 1374);
|
||||||
}
|
}
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
@ -1050,11 +1050,11 @@ return [
|
||||||
"pconfig" => [
|
"pconfig" => [
|
||||||
"comment" => "personal (per user) configuration storage",
|
"comment" => "personal (per user) configuration storage",
|
||||||
"fields" => [
|
"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"],
|
"uid" => ["type" => "mediumint unsigned", "not null" => "1", "default" => "0", "foreign" => ["user" => "uid"], "comment" => "User id"],
|
||||||
"cat" => ["type" => "varbinary(50)", "not null" => "1", "default" => "", "comment" => ""],
|
"cat" => ["type" => "varchar(50)", "not null" => "1", "default" => "", "comment" => "Category"],
|
||||||
"k" => ["type" => "varbinary(100)", "not null" => "1", "default" => "", "comment" => ""],
|
"k" => ["type" => "varchar(100)", "not null" => "1", "default" => "", "comment" => "Key"],
|
||||||
"v" => ["type" => "mediumtext", "comment" => ""],
|
"v" => ["type" => "mediumtext", "comment" => "Value"],
|
||||||
],
|
],
|
||||||
"indexes" => [
|
"indexes" => [
|
||||||
"PRIMARY" => ["id"],
|
"PRIMARY" => ["id"],
|
||||||
|
|
0
static/dbview.config.php
Executable file → Normal file
0
static/dbview.config.php
Executable file → Normal file
|
@ -747,4 +747,5 @@ function pre_update_1365()
|
||||||
return Update::FAILED;
|
return Update::FAILED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return Update::SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue