Browse Source

Change workerqueue.parameter to mediumtext for lisibility

Hypolite Petovan 3 months ago
parent
commit
7720b62799
2 changed files with 4 additions and 3 deletions
  1. 2
    2
      config/dbstructure.config.php
  2. 2
    1
      database.sql

+ 2
- 2
config/dbstructure.config.php View File

@@ -34,7 +34,7 @@
34 34
 use Friendica\Database\DBA;
35 35
 
36 36
 if (!defined('DB_UPDATE_VERSION')) {
37
-	define('DB_UPDATE_VERSION', 1299);
37
+	define('DB_UPDATE_VERSION', 1300);
38 38
 }
39 39
 
40 40
 return [
@@ -1365,7 +1365,7 @@ return [
1365 1365
 		"comment" => "Background tasks queue entries",
1366 1366
 		"fields" => [
1367 1367
 			"id" => ["type" => "int unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1", "comment" => "Auto incremented worker task id"],
1368
-			"parameter" => ["type" => "mediumblob", "comment" => "Task command"],
1368
+			"parameter" => ["type" => "mediumtext", "comment" => "Task command"],
1369 1369
 			"priority" => ["type" => "tinyint unsigned", "not null" => "1", "default" => "0", "comment" => "Task priority"],
1370 1370
 			"created" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => "Creation date"],
1371 1371
 			"pid" => ["type" => "int unsigned", "not null" => "1", "default" => "0", "comment" => "Process id of the worker"],

+ 2
- 1
database.sql View File

@@ -1,6 +1,6 @@
1 1
 -- ------------------------------------------
2 2
 -- Friendica 2019.03-dev (The Tazmans Flax-lily)
3
+-- DB_UPDATE_VERSION 1300
3 4
 -- ------------------------------------------
4 5
 
5 6
 
@@ -1260,7 +1260,7 @@ CREATE TABLE IF NOT EXISTS `worker-ipc` (
1260 1260
 --
1261 1261
 CREATE TABLE IF NOT EXISTS `workerqueue` (
1262 1262
 	`id` int unsigned NOT NULL auto_increment COMMENT 'Auto incremented worker task id',
1263
-	`parameter` mediumblob COMMENT 'Task command',
1263
+	`parameter` mediumtext COMMENT 'Task command',
1264 1264
 	`priority` tinyint unsigned NOT NULL DEFAULT 0 COMMENT 'Task priority',
1265 1265
 	`created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT 'Creation date',
1266 1266
 	`pid` int unsigned NOT NULL DEFAULT 0 COMMENT 'Process id of the worker',

Loading…
Cancel
Save