Metadata-Version: 2.4
Name: bazaar-contrib-server-migrations
Version: 0.3.0rc2
Summary: Published Server 1–7 historical database upgrades
License-Expression: Apache-2.0
License-File: LICENSE
Requires-Dist: bazaar-core~=0.3.0rc1
Requires-Dist: bazaar-contrib-storage~=0.3.0rc1
Requires-Dist: bazaar-contrib-schema~=0.3.0rc1
Requires-Dist: bazaar-contrib-server-database~=0.3.0rc1
Requires-Python: >=3.15
Project-URL: Repository, https://github.com/open-bazaar/contrib-server-migrations
Description-Content-Type: text/markdown

# bazaar-contrib-server-migrations

Upgrade existing Server databases through the published migrations 1–7; fresh databases use the baselines of the modules that own the tables. The history registers on `SERVER_SCHEMA`, the schema of the server's own database from `bazaar-contrib-server-database`.

```sh
bcn contrib add server-migrations --enable
```

The corresponding entry in `config.toml`:

```toml
version = "5"

[[contribs]]
package = "bazaar-contrib-server-migrations==0.3.*"
[[contribs.enabled]]
entry = "server-migrations"
```

A module that takes over a Server table accepts `SERVER_MIGRATIONS`, registers on `SERVER_SCHEMA` and declares `bazaar-contrib-server-migrations` version 7 as the predecessor of its own schema.
