• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Yoast / wordpress-seo / d5c0395617268a4e44627c6847bf3faa0a6cc695

15 Apr 2025 07:12AM UTC coverage: 52.454% (-2.1%) from 54.595%
d5c0395617268a4e44627c6847bf3faa0a6cc695

push

github

web-flow
Merge pull request #22077 from Yoast/feature/drop-php-7.2-7.3

Drop compatibility with PHP 7.2 and 7.3

7826 of 13877 branches covered (56.4%)

Branch coverage included in aggregate %.

29028 of 56382 relevant lines covered (51.48%)

42273.52 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/config/migrations/20210817092415_AddVersionColumnToIndexables.php
1
<?php
2

3
namespace Yoast\WP\SEO\Config\Migrations;
4

5
use Yoast\WP\Lib\Migrations\Migration;
6
use Yoast\WP\Lib\Model;
7

8
/**
9
 * AddVersionColumnToIndexables class.
10
 */
11
class AddVersionColumnToIndexables extends Migration {
12

13
        /**
14
         * The plugin this migration belongs to.
15
         *
16
         * @var string
17
         */
18
        public static $plugin = 'free';
19

20
        /**
21
         * Migration up.
22
         *
23
         * @return void
24
         */
25
        public function up() {
×
26
                $this->add_column(
×
27
                        $this->get_table_name(),
×
28
                        'version',
×
29
                        'integer',
×
30
                        [
×
31
                                'default'  => 1,
×
32
                        ]
×
33
                );
×
34
        }
35

36
        /**
37
         * Migration down.
38
         *
39
         * @return void
40
         */
41
        public function down() {
×
42
                $this->remove_column(
×
43
                        $this->get_table_name(),
×
44
                        'version'
×
45
                );
×
46
        }
47

48
        /**
49
         * Retrieves the table name to use for storing indexables.
50
         *
51
         * @return string The table name to use.
52
         */
53
        protected function get_table_name() {
×
54
                return Model::get_table_name( 'Indexable' );
×
55
        }
56
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc