From 57c7cf8be9f14d3dd06f2e6ba29a5caf298e41a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Sun, 4 Oct 2026 14:55:00 +0200 Subject: [PATCH] chore(db): number the pulse mean migration after 0371 --- .../migration.sql | 0 tests/integration/pulse-hourly-mean-migration.test.ts | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) rename prisma/migrations/{0373_pulse_hourly_mean_day => 0372_pulse_hourly_mean_day}/migration.sql (100%) diff --git a/prisma/migrations/0373_pulse_hourly_mean_day/migration.sql b/prisma/migrations/0372_pulse_hourly_mean_day/migration.sql similarity index 100% rename from prisma/migrations/0373_pulse_hourly_mean_day/migration.sql rename to prisma/migrations/0372_pulse_hourly_mean_day/migration.sql diff --git a/tests/integration/pulse-hourly-mean-migration.test.ts b/tests/integration/pulse-hourly-mean-migration.test.ts index 040aa53fa..053c22c77 100644 --- a/tests/integration/pulse-hourly-mean-migration.test.ts +++ b/tests/integration/pulse-hourly-mean-migration.test.ts @@ -1,5 +1,5 @@ /** - * Migration 0373 rewrites the `mean` of stored PULSE rollup rows to the + * Migration 0372 rewrites the `mean` of stored PULSE rollup rows to the * hourly-mean statistic, and touches nothing else. * * The rows are first built by the writer, then their `mean` is set to a @@ -26,7 +26,7 @@ const MIGRATION = readFileSync( process.cwd(), "prisma", "migrations", - "0373_pulse_hourly_mean_day", + "0372_pulse_hourly_mean_day", "migration.sql", ), "utf8", @@ -131,7 +131,7 @@ const meanOf = (all: Row[], type: string, granularity: string, at?: number) => (at === undefined || r.bucket_start.getTime() === at), )?.mean; -describe("migration 0373", () => { +describe("migration 0372", () => { it("covers all four granularities of both types", () => { for (const type of ["PULSE", "HEART_RATE_VARIABILITY"]) { for (const g of ["DAY", "WEEK", "MONTH", "YEAR"]) {