exclude sqlite3 from db migrations as well. fixes #391

This commit is contained in:
Claude 2017-09-29 09:37:25 +02:00
parent 67351dbd81
commit 9f3f7b326c

View File

@ -266,7 +266,7 @@ class Main extends CI_Controller
//ipv6 migration
$fields = $this->db->field_data('trending');
if (config_item('db_driver') != 'sqlite' && $fields[1]->max_length < 45)
if (stristr(config_item('db_driver') , 'sqlite') === false && $fields[1]->max_length < 45)
{
$db_prefix = config_item('db_prefix');
@ -294,7 +294,7 @@ class Main extends CI_Controller
if ($field->name == 'title')
{
if (config_item('db_driver') != 'sqlite' && $field->max_length < 50)
if (stristr(config_item('db_driver') , 'sqlite') === false && $field->max_length < 50)
{
$db_prefix = config_item('db_prefix');
@ -316,6 +316,9 @@ class Main extends CI_Controller
{
if ($field->name == 'id')
{
if (stristr(config_item('db_driver') , 'sqlite') === false)
{
if ($field->max_length < 128)
@ -334,6 +337,7 @@ class Main extends CI_Controller
}
}
}
}
function _form_prep($lang = false, $title = '', $paste = '', $reply = false)
{