# Upgrade

## Version-to-version notes

### 0.1.0 (initial)

No upgrades yet.

## Rollback recipe

If a new version breaks search:

```bash
# 1. Flip to off — visitors immediately switch to native search.
wp option update seekmodo_wp_mode off

# 2. Reinstall the previous version (find it on the releases page).
wp plugin delete seekmodo-wordpress
wp plugin install https://seekmodo.com/plugins/seekmodo-wordpress-v<PREV>.zip --activate

# 3. Re-pair (credentials carry forward if you used the CLI flow; if
# the browser flow, credentials are persisted in wp_options and you
# can skip this).
wp seekmodo connect --tenant=<id> --secret=<secret>

# 4. Re-enable.
wp option update seekmodo_wp_mode active
```

Step 1 alone is sufficient for incident response — you don't need to
roll the plugin back to mitigate. Roll back only if the upgrade itself
introduced a fatal error in the WordPress admin or storefront.

## Schema migrations

`seekmodo_wp_schema_version` is bumped by the indexer when the doc
shape changes. The next scheduled `seekmodo_wp_index_tick` auto-
promotes itself to a full reindex when it sees the bumped version. No
operator action required.

If you want to force the full reindex immediately after an upgrade:

```bash
wp seekmodo index --full
```
