diff --git a/core/Application.php b/core/Application.php index d2bcb18bafb3e..770fdfb532dd4 100644 --- a/core/Application.php +++ b/core/Application.php @@ -191,8 +191,8 @@ public function __construct() { $event->addMissingIndex( 'jobs', - 'job_lastcheck_reserved', - ['last_checked', 'reserved_at'] + 'job_last_reserved_sensitive', + ['last_checked', 'reserved_at', 'time_sensitive'] ); $event->addMissingIndex( diff --git a/core/Migrations/Version31000Date20240819122840.php b/core/Migrations/Version31000Date20240819122840.php new file mode 100644 index 0000000000000..7664c2a35ac19 --- /dev/null +++ b/core/Migrations/Version31000Date20240819122840.php @@ -0,0 +1,45 @@ +getTable('jobs'); + + # Remove previous indices + if ($table->hasIndex('job_lastcheck_reserved')) { + $table->dropIndex('job_lastcheck_reserved'); + } + if ($table->hasIndex('jobs_time_sensitive')) { + $table->dropIndex('jobs_time_sensitive'); + } + + # Add updated index + if (!$table->hasIndex('job_last_reserved_sensitive')) { + $table->addIndex(['last_checked', 'reserved_at', 'time_sensitive'], 'job_last_reserved_sensitive'); + } + + return $schema; + } +} diff --git a/version.php b/version.php index 856c0764327b3..e020e4f483a39 100644 --- a/version.php +++ b/version.php @@ -9,7 +9,7 @@ // between betas, final and RCs. This is _not_ the public version number. Reset minor/patch level // when updating major/minor version number. -$OC_Version = [31, 0, 0, 1]; +$OC_Version = [31, 0, 0, 2]; // The human-readable string $OC_VersionString = '31.0.0 dev';