← All changes
|
src/config/migrations/20200702141921_CreateIndexableSubpagesIndex.php
+4
-4
18.4
→
trunk
View file →
| @@ -29,14 +29,14 @@ | ||
| 29 | 29 | 'string', |
| 30 | 30 | [ |
| 31 | 31 | 'null' => true, |
| 32 | 32 | 'limit' => 20, |
| 33 | - ] | |
| 33 | + ], | |
| 34 | 34 | ); |
| 35 | 35 | $this->add_index( |
| 36 | 36 | $this->get_table_name(), |
| 37 | 37 | [ 'post_parent', 'object_type', 'post_status', 'object_id' ], |
| 38 | - [ 'name' => 'subpages' ] | |
| 38 | + [ 'name' => 'subpages' ], | |
| 39 | 39 | ); |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | /** |
| @@ -51,14 +51,14 @@ | ||
| 51 | 51 | 'string', |
| 52 | 52 | [ |
| 53 | 53 | 'null' => true, |
| 54 | 54 | 'limit' => 191, |
| 55 | - ] | |
| 55 | + ], | |
| 56 | 56 | ); |
| 57 | 57 | $this->remove_index( |
| 58 | 58 | $this->get_table_name(), |
| 59 | 59 | [ 'post_parent', 'object_type', 'post_status', 'object_id' ], |
| 60 | - [ 'name' => 'subpages' ] | |
| 60 | + [ 'name' => 'subpages' ], | |
| 61 | 61 | ); |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | /** |