mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-25 20:41:20 -05:00
exclude sqlite3 from db migrations as well. fixes #391
This commit is contained in:
parent
67351dbd81
commit
9f3f7b326c
@ -266,7 +266,7 @@ class Main extends CI_Controller
|
|||||||
//ipv6 migration
|
//ipv6 migration
|
||||||
$fields = $this->db->field_data('trending');
|
$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');
|
$db_prefix = config_item('db_prefix');
|
||||||
|
|
||||||
@ -294,7 +294,7 @@ class Main extends CI_Controller
|
|||||||
if ($field->name == 'title')
|
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');
|
$db_prefix = config_item('db_prefix');
|
||||||
|
|
||||||
@ -316,6 +316,9 @@ class Main extends CI_Controller
|
|||||||
{
|
{
|
||||||
|
|
||||||
if ($field->name == 'id')
|
if ($field->name == 'id')
|
||||||
|
{
|
||||||
|
|
||||||
|
if (stristr(config_item('db_driver') , 'sqlite') === false)
|
||||||
{
|
{
|
||||||
|
|
||||||
if ($field->max_length < 128)
|
if ($field->max_length < 128)
|
||||||
@ -334,6 +337,7 @@ class Main extends CI_Controller
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function _form_prep($lang = false, $title = '', $paste = '', $reply = false)
|
function _form_prep($lang = false, $title = '', $paste = '', $reply = false)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user