Version 5.0.13

This commit is contained in:
Neo committed 2025-12-19 19:04:57 -08:00
1 parent b89858b2ff
commit 5efe744c5f
1407 files changed
+69690 -30177

No files matched your search

+17 -10
View File
@@ -46,19 +46,26 @@ class Upgrade
foreach( $types as $class )
{
if ( ! class_exists( $class ) )
try
{
continue;
}
if ( ! class_exists( $class ) )
{
continue;
}
/* @var Content $class */
if( isset( $class::$databaseColumnMap['featured'] ) )
{
/* Get all the IDs and update them all at once */
Db::i()->update( $class::$databaseTable, [ $class::$databasePrefix . $class::$databaseColumnMap['featured'] => 1 ], [
/* @var Content $class */
if( isset( $class::$databaseColumnMap['featured'] ) )
{
/* Get all the IDs and update them all at once */
Db::i()->update( $class::$databaseTable, [ $class::$databasePrefix . $class::$databaseColumnMap['featured'] => 1 ], [
[ $class::$databasePrefix . $class::$databaseColumnId . ' IN (?)',
Db::i()->select( 'promote_class_id', 'core_content_promote', [ 'promote_class=?', $class ] ) ]
] );
Db::i()->select( 'promote_class_id', 'core_content_promote', [ 'promote_class=?', $class ] ) ]
] );
}
}
catch( \Exception $e )
{
}
}