# wp-map-block/2.0.2/includes/Migration.php

WP Map Block – Google Maps, OpenStreetMap, Mapbox, Store &amp; Shop Locator, Directory, Listings &amp; Filters, version 2.0.2. 21 lines.

- Page: https://pluginprobe.com/plugins/wp-map-block/2.0.2/code/includes/Migration.php
- Raw: https://pluginprobe.com/plugins/wp-map-block/2.0.2/raw/includes/Migration.php
- Modified: 2025-05-25T14:00:30+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wp-map-block/2.0.2/code/includes/Migration.php#L10-L20`.

```php
<?php
namespace WPMapBlock;

class Migration
{
    public static function init()
    {
        $self = new self();
        $self->run_migration();
    }
    public function run_migration()
    {
        if (get_option('wp_map_block_version') != WPMAPBLOCK_VERSION) {
            update_option('wp_map_block_version', WPMAPBLOCK_VERSION);
        }
        if (!get_option('wp_map_block_first_install_time')) {
            add_option('wp_map_block_first_install_time', time() + (get_option('gmt_offset') * HOUR_IN_SECONDS));
        }
    }
}

```
