← All changes
|
src/config/migrations/20200616130143_ReplacePermalinkHashIndex.php
+6
-6
18.0
→
trunk
View file →
| @@ -36,9 +36,9 @@ | ||
| 36 | 36 | 'string', |
| 37 | 37 | [ |
| 38 | 38 | 'null' => true, |
| 39 | 39 | 'limit' => 40, |
| 40 | - ] | |
| 40 | + ], | |
| 41 | 41 | ); |
| 42 | 42 | |
| 43 | 43 | if ( $adapter->has_index( $table_name, [ 'permalink_hash' ], [ 'name' => 'permalink_hash' ] ) ) { |
| 44 | 44 | $this->remove_index( |
| @@ -47,9 +47,9 @@ | ||
| 47 | 47 | 'permalink_hash', |
| 48 | 48 | ], |
| 49 | 49 | [ |
| 50 | 50 | 'name' => 'permalink_hash', |
| 51 | - ] | |
| 51 | + ], | |
| 52 | 52 | ); |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | if ( ! $adapter->has_index( $table_name, [ 'permalink_hash', 'object_type' ], [ 'name' => 'permalink_hash_and_object_type' ] ) ) { |
| @@ -60,9 +60,9 @@ | ||
| 60 | 60 | 'object_type', |
| 61 | 61 | ], |
| 62 | 62 | [ |
| 63 | 63 | 'name' => 'permalink_hash_and_object_type', |
| 64 | - ] | |
| 64 | + ], | |
| 65 | 65 | ); |
| 66 | 66 | } |
| 67 | 67 | } |
| 68 | 68 | |
| @@ -87,9 +87,9 @@ | ||
| 87 | 87 | 'object_type', |
| 88 | 88 | ], |
| 89 | 89 | [ |
| 90 | 90 | 'name' => 'permalink_hash_and_object_type', |
| 91 | - ] | |
| 91 | + ], | |
| 92 | 92 | ); |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | $this->change_column( |
| @@ -98,9 +98,9 @@ | ||
| 98 | 98 | 'string', |
| 99 | 99 | [ |
| 100 | 100 | 'null' => true, |
| 101 | 101 | 'limit' => 191, |
| 102 | - ] | |
| 102 | + ], | |
| 103 | 103 | ); |
| 104 | 104 | |
| 105 | 105 | if ( ! $adapter->has_index( $table_name, [ 'permalink_hash' ], [ 'name' => 'permalink_hash' ] ) ) { |
| 106 | 106 | $this->add_index( |
| @@ -109,9 +109,9 @@ | ||
| 109 | 109 | 'permalink_hash', |
| 110 | 110 | ], |
| 111 | 111 | [ |
| 112 | 112 | 'name' => 'permalink_hash', |
| 113 | - ] | |
| 113 | + ], | |
| 114 | 114 | ); |
| 115 | 115 | } |
| 116 | 116 | } |
| 117 | 117 | |