Skip to content

Commit

Permalink
Dev: Increase plugin_type varchar to 6 chars ('upload' type)
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Oct 8, 2018
1 parent aa4a8ff commit 365f3e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion application/helpers/update/updatedb_helper.php
Expand Up @@ -2476,7 +2476,7 @@ function db_upgrade_all($iOldDBVersion, $bSilent = false)
$oTransaction = $oDB->beginTransaction();

// Plugin type is either "core", "user" or "upload" (different folder locations).
$oDB->createCommand()->addColumn('{{plugins}}', 'plugin_type', "string(4) default 'user'");
$oDB->createCommand()->addColumn('{{plugins}}', 'plugin_type', "string(6) default 'user'");

$oDB->createCommand()->update('{{settings_global}}', array('stg_value'=>402), "stg_name='DBVersion'");

Expand Down
2 changes: 1 addition & 1 deletion installer/create-database.php
Expand Up @@ -284,7 +284,7 @@ function createDatabase($oDB){
$oDB->createCommand()->createTable('{{plugins}}', array(
'id' => "pk",
'name' => "string(50) NOT NULL",
'plugin_type' => "string(4) default 'user'",
'plugin_type' => "string(6) default 'user'",
'active' => "int NOT NULL default 0",
'version' => "string(32) NULL",
'load_error' => 'int default 0',
Expand Down

0 comments on commit 365f3e8

Please sign in to comment.