Files
pezkuwi-subxt/polkadot/scripts/changelog/templates/migrations-runtime.md.tera
T
Chevdor 168dc6e5cd Fix changelog (#5155)
* Pass git ref explicitely

* Include a db migration section to the changelog
2022-03-22 09:55:21 +01:00

26 lines
701 B
Plaintext

{%- import "change.md.tera" as m_c %}
{%- set_global runtime_migration_count = 0 -%}
## Runtime Migrations
{% for pr in changes | sort(attribute="merged_at") -%}
{%- if pr.meta.B and pr.meta.B.value == 0 %}
{#- We skip silent ones -#}
{%- else -%}
{%- if pr.meta.E and pr.meta.E.value == 1 -%}
{%- set_global runtime_migration_count = runtime_migration_count + 1 -%}
- {{ m_c::change(c=pr) }}
{% endif -%}
{% endif -%}
{% endfor -%}
{%- if runtime_migration_count == 0 -%}
No Runtime migration detected in this release.
{% else %}
There is {{ runtime_migration_count }} runtime migration(s) in this release.
Runtime migrations are operations running once during a runtime upgrade.
{%- endif %}