Version 4.1.19.4

This commit is contained in:
Neo committed 2025-12-19 05:42:01 -08:00
1 parent 2bd5025018
commit 0dc2aee5ed
312 files changed
+53730 -32118

No files matched your search

@@ -37,13 +37,17 @@ class _Upgrade
{
\IPS\Db::i()->returnQuery = TRUE;
if( \IPS\Db::i()->checkForIndex( 'downloads_ccontent', 'field_' . $field['f_id'] ) )
if( \IPS\Db::i()->checkForIndex( 'downloads_ccontent', 'field_' . $field['cf_id'] ) )
{
$queries[] = array( 'table' => 'downloads_ccontent', 'query' => \IPS\Db::i()->dropIndex( 'downloads_ccontent', 'field_' . $field['f_id'] ) );
\IPS\Db::i()->returnQuery = TRUE;
$queries[] = array( 'table' => 'downloads_ccontent', 'query' => \IPS\Db::i()->dropIndex( 'downloads_ccontent', 'field_' . $field['cf_id'] ) );
}
\IPS\Db::i()->returnQuery = TRUE;
$queries[] = array( 'table' => 'downloads_ccontent', 'query' => \IPS\Db::i()->changeColumn( 'downloads_ccontent', 'field_' . $field['cf_id'], array( 'name' => 'field_' . $field['cf_id'], 'type' => 'MEDIUMTEXT' ) ) );
$queries[] = array( 'table' => 'downloads_ccontent', 'query' => \IPS\Db::i()->addIndex( 'downloads_ccontent', array( 'type' => 'fulltext', 'name' => 'field_' . $field['f_id'], 'columns' => array( 'field_' . $field['f_id'] ) ) ) );
\IPS\Db::i()->returnQuery = TRUE;
$queries[] = array( 'table' => 'downloads_ccontent', 'query' => \IPS\Db::i()->addIndex( 'downloads_ccontent', array( 'type' => 'fulltext', 'name' => 'field_' . $field['cf_id'], 'columns' => array( 'field_' . $field['cf_id'] ) ) ) );
\IPS\Db::i()->returnQuery = FALSE;
}