mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 04:01:02 +00:00
9a5e01a3b4
* update templates to upcoming context.json format * fix merging error * more fixes * fix templates * fix * print "changelogerator --version" * print changelogerator version as debug * remove excluded debug info * WIP * Switch to changelogerator v0.10.1 * Update bundle deps * fix --------- Co-authored-by: Wilfried Kopp <wilfried@parity.io>
31 lines
1.0 KiB
Plaintext
31 lines
1.0 KiB
Plaintext
{% import "change.md.tera" as m_c %}
|
||
{%- set_global db_migration_count = 0 -%}
|
||
{%- for pr in changes -%}
|
||
{%- if pr.meta.B and pr.meta.B.B0 %}
|
||
{#- We skip silent ones -#}
|
||
{%- elif pr.meta.E and pr.meta.E.E2 -%}
|
||
{%- set_global db_migration_count = db_migration_count + 1 -%}
|
||
{%- endif -%}
|
||
{%- endfor %}
|
||
|
||
## Database Migrations
|
||
|
||
Database migrations are operations upgrading the database to the latest stand.
|
||
Some migrations may break compatibility, making a backup of your database is highly recommended.
|
||
|
||
{% if db_migration_count == 0 -%}
|
||
ℹ️ There is no database migration in this release.
|
||
{%- elif db_migration_count == 1 -%}
|
||
⚠️ There is one database migration in this release:
|
||
{%- else -%}
|
||
⚠️ There are {{ db_migration_count }} database migrations in this release:
|
||
{%- endif %}
|
||
{% for pr in changes | sort(attribute="merged_at") -%}
|
||
|
||
{%- if pr.meta.B and pr.meta.B.B0 %}
|
||
{#- We skip silent ones -#}
|
||
{%- elif pr.meta.E and pr.meta.E.E2 -%}
|
||
- {{ m_c::change(c=pr) }}
|
||
{% endif -%}
|
||
{% endfor -%}
|