Skip to content

Commit 9b86305

Browse files
committed
Use where clouse to get site info
1 parent 18b37d3 commit 9b86305

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

migrations/container/20181225063950_service-command_change_global_service_container_names.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ public function up() {
3737
/**
3838
* Sites wp-config changes for global-cache.
3939
*/
40-
$cache_sites = EE\Model\Site::find( 'global-redis', 'cache_host' );
40+
$cache_sites = EE\Model\Site::where( 'cache_host', 'global-redis' );
4141
foreach ( $cache_sites as $site ) {
4242

4343
self::$rsp->add_step(
4444
sprintf( 'update-cache-host-%s', $site->site_url ),
45-
'EE\Migration\SiteContainers::backup_restore',
45+
'EE\Migration\ChangeGlobalServiceContainerNames::update_cache_host',
4646
null,
4747
[ $site ],
4848
null

0 commit comments

Comments
 (0)