aurora-is-near / aurora-relayer

[DEPRECATED] Web3-compatible relayer server for Aurora.
https://aurora-is-near.github.io/aurora-relayer/
Creative Commons Zero v1.0 Universal
26 stars 13 forks source link

ordered migrations #158

Closed JonathanLogan closed 2 years ago

JonathanLogan commented 2 years ago

This addition allows the execution of ordered migrations. The .docker/.manifest file contains lines of the following format: <uniqueid> <goose|sql> <path> or <uniqueid> <command> <parameters>

A "goose" entry will apply the goose schema fix contained in migrations/<path>/*.sql . A "sql" entry will execute the SQL commands from migrations/<path> . Any other entry will literally execute <command> /srv/aurora/relayer/<parameters> .

Execution of the migrations is handled by util/update/update.sh . It will also record the executed migration commands and prevent duplicate execution. The execution state is recorded in the database and is thus portable.

ALL required migrations should exclusively use this method, and are required to complete:

The purpose of any migration is to be able to upgrade an existing database to the most recent schema and content DURING runtime, including at partners that might skip updates.