Metadata-Version: 2.4
Name: bazaar-contrib-server-migrations
Version: 0.3.0rc3
Summary: Published Server 1–7 historical database upgrades, and the events held by id
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, then rebuild the events without their foreign key to the computers; 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 the `bazaar-contrib-server-migrations` version that left the table as its baseline has it — 7, or 8 for the events — as the predecessor of its own schema.
