From a1771657f4936cc41b2ad831ee274dd60ae50ce6 Mon Sep 17 00:00:00 2001 From: Mara Robin B Date: Thu, 2 Mar 2023 00:40:03 +0100 Subject: [PATCH] changelog: fix migration listing (#6806) * changelog: fix runtime migration listing * changelog: fix db migration listing --- polkadot/scripts/ci/changelog/templates/migrations-db.md.tera | 4 ++-- .../scripts/ci/changelog/templates/migrations-runtime.md.tera | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/polkadot/scripts/ci/changelog/templates/migrations-db.md.tera b/polkadot/scripts/ci/changelog/templates/migrations-db.md.tera index f70914aa8e..130a61a12c 100644 --- a/polkadot/scripts/ci/changelog/templates/migrations-db.md.tera +++ b/polkadot/scripts/ci/changelog/templates/migrations-db.md.tera @@ -3,7 +3,7 @@ {%- 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 -%} + {%- elif pr.meta.E and pr.meta.E.E1 -%} {%- set_global db_migration_count = db_migration_count + 1 -%} {%- endif -%} {%- endfor %} @@ -24,7 +24,7 @@ Some migrations may break compatibility, making a backup of your database is hig {%- if pr.meta.B and pr.meta.B.B0 %} {#- We skip silent ones -#} -{%- elif pr.meta.E and pr.meta.E.E2 -%} +{%- elif pr.meta.E and pr.meta.E.E1 -%} - {{ m_c::change(c=pr) }} {% endif -%} {% endfor -%} diff --git a/polkadot/scripts/ci/changelog/templates/migrations-runtime.md.tera b/polkadot/scripts/ci/changelog/templates/migrations-runtime.md.tera index 1cd67f6cc5..25517a142e 100644 --- a/polkadot/scripts/ci/changelog/templates/migrations-runtime.md.tera +++ b/polkadot/scripts/ci/changelog/templates/migrations-runtime.md.tera @@ -3,7 +3,7 @@ {%- 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.E1 -%} + {%- elif pr.meta.E and pr.meta.E.E0 -%} {%- set_global runtime_migration_count = runtime_migration_count + 1 -%} {%- endif -%} {%- endfor %} @@ -23,7 +23,7 @@ Runtime migrations are operations running once during a runtime upgrade. {%- if pr.meta.B and pr.meta.B.B0 %} {#- We skip silent ones -#} -{%- elif pr.meta.E and pr.meta.E.E1 -%} +{%- elif pr.meta.E and pr.meta.E.E0 -%} - {{ m_c::change(c=pr) }} {% endif -%} {% endfor -%}