From 1f46a241d27a9120f80e91c7ce413ec5f7ce9a48 Mon Sep 17 00:00:00 2001 From: Paul Nothaft Date: Sun, 21 Jun 2026 21:12:22 +0200 Subject: [PATCH] =?UTF-8?q?chore(whatsapp):=20renumber=20migration=20138?= =?UTF-8?q?=20=E2=86=92=20140=20(after=20PR=20#646's=20138+139)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR #646's review-round renumbered its slideshow migrations to 138 + 139 to slot in after PR #649's 137 (whatsapp_template_language). That now collides with this PR's 138. Slide ours to 140 so all three land in strict order: #649 (137) → #646 (138, 139) → this PR (140). Content unchanged; pure rename + a one-line docstring tweak noting the slot. --- ...late_params.js => 140_add_whatsapp_template_params.js} | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) rename backend/migrations/core/{138_add_whatsapp_template_params.js => 140_add_whatsapp_template_params.js} (84%) diff --git a/backend/migrations/core/138_add_whatsapp_template_params.js b/backend/migrations/core/140_add_whatsapp_template_params.js similarity index 84% rename from backend/migrations/core/138_add_whatsapp_template_params.js rename to backend/migrations/core/140_add_whatsapp_template_params.js index cd4098a9..7cbbb19e 100644 --- a/backend/migrations/core/138_add_whatsapp_template_params.js +++ b/backend/migrations/core/140_add_whatsapp_template_params.js @@ -1,5 +1,5 @@ /** - * Migration 138: WhatsApp template parameter selection (#647 follow-up). + * Migration 140: WhatsApp template parameter selection (#647 follow-up). * * Adds a `template_params` column to `whatsapp_configs` that stores an * ordered JSON array of slot keys naming which built-in values are sent @@ -18,8 +18,10 @@ * Known slot keys (any other keys are ignored): `customer_name`, * `event_name`, `gallery_link`, `password_line`, `expiry_date`. * - * Additive + `hasColumn`-guarded. The settling number depends on the - * merge order with PR #646; flagged for renumber if that lands first. + * Slot 140: lands after PR #649 (137 — whatsapp_template_language) and + * PR #646 (138 — slideshow_share, 139 — slideshow_styling). Additive + + * `hasColumn`-guarded so re-running on an already-migrated DB is a + * safe no-op. */ exports.up = async function (knex) { if (!(await knex.schema.hasTable('whatsapp_configs'))) return;