| @@ -8,8 +8,9 @@ | ||
| 8 | 8 | use FluentCommunity\Database\Migrations\FeedSpaceMigrator; |
| 9 | 9 | use FluentCommunity\Database\Migrations\FeedSpaceUserMigrator; |
| 10 | 10 | use FluentCommunity\Database\Migrations\MediaArchiveMigrator; |
| 11 | 11 | use FluentCommunity\Database\Migrations\MetaMigrator; |
| 12 | +use FluentCommunity\Database\Migrations\NotificationPrefMigrator; | |
| 12 | 13 | use FluentCommunity\Database\Migrations\NotificationsMigrator; |
| 13 | 14 | use FluentCommunity\Database\Migrations\NotificationUserMigrator; |
| 14 | 15 | use FluentCommunity\Database\Migrations\TermFeedMigrator; |
| 15 | 16 | use FluentCommunity\Database\Migrations\TermMigrator; |
| @@ -23,9 +24,9 @@ | ||
| 23 | 24 | public static function run($network_wide = false) |
| 24 | 25 | { |
| 25 | 26 | if($network_wide) { |
| 26 | 27 | global $wpdb; |
| 27 | - $blogs = $wpdb->get_results("SELECT blog_id FROM $wpdb->blogs"); | |
| 28 | + $blogs = $wpdb->get_results("SELECT blog_id FROM $wpdb->blogs"); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching | |
| 28 | 29 | foreach ($blogs as $blog) { |
| 29 | 30 | switch_to_blog($blog->blog_id); |
| 30 | 31 | self::migrate(); |
| 31 | 32 | restore_current_blog(); |
| @@ -45,8 +46,9 @@ | ||
| 45 | 46 | FeedSpaceUserMigrator::migrate(); |
| 46 | 47 | MetaMigrator::migrate(); |
| 47 | 48 | NotificationsMigrator::migrate(); |
| 48 | 49 | NotificationUserMigrator::migrate(); |
| 50 | + NotificationPrefMigrator::migrate(); | |
| 49 | 51 | UserActivitiesMigrator::migrate(); |
| 50 | 52 | TermMigrator::migrate(); |
| 51 | 53 | TermFeedMigrator::migrate(); |
| 52 | 54 | MediaArchiveMigrator::migrate(); |