PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / trunk
Yoast SEO – Advanced SEO with real-time guidance and built-in AI vtrunk
28.6 28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 All 130 releases
← All changes | src/config/migrations/20200609154515_AddHasAncestorsColumn.php +6 -2 18.4 → trunk View file →
@@ -19,8 +19,10 @@
19 19 public static $plugin = 'free';
20 20
21 21 /**
22 22 * Migration up.
23 + *
24 + * @return void
23 25 */
24 26 public function up() {
25 27 $this->add_column(
26 28 Model::get_table_name( 'Indexable' ),
@@ -27,9 +29,9 @@
27 29 'has_ancestors',
28 30 'boolean',
29 31 [
30 32 'default' => false,
31 - ]
33 + ],
32 34 );
33 35
34 36 Wrapper::get_wpdb()->query(
35 37 '
@@ -35,14 +37,16 @@
35 37 '
36 38 UPDATE ' . Model::get_table_name( 'Indexable' ) . '
37 39 SET has_ancestors = 1
38 40 WHERE id IN ( SELECT indexable_id FROM ' . Model::get_table_name( 'Indexable_Hierarchy' ) . ' )
39 - '
41 + ',
40 42 );
41 43 }
42 44
43 45 /**
44 46 * Migration down.
47 + *
48 + * @return void
45 49 */
46 50 public function down() {
47 51 $this->remove_column( Model::get_table_name( 'Indexable' ), 'has_ancestors' );
48 52 }