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:
Failed execution of the update.sh script WILL lead to the rejection of the release in the deploy cycle.
Failed execution of the indexer or the endpoint after update.sh WILL lead to the rejection of the release in the deploy cycle.
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.
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 frommigrations/<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.