5.2.1: Миграция удаления weekly_goals.max_score
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m25s

This commit is contained in:
poignatov
2026-02-23 11:28:42 +03:00
parent a5e3396017
commit bff62c0b8f
4 changed files with 10 additions and 2 deletions

View File

@@ -1 +1 @@
5.2.0
5.2.1

View File

@@ -0,0 +1,4 @@
-- Restore max_score for rollback (snapshot of goal; can be repopulated from max_goal_score)
ALTER TABLE weekly_goals ADD COLUMN IF NOT EXISTS max_score NUMERIC(10,4);
UPDATE weekly_goals SET max_score = max_goal_score WHERE max_score IS NULL;

View File

@@ -0,0 +1,4 @@
-- Migration: Drop weekly_goals.max_score if still present (e.g. prod where 000020 wasn't applied)
-- normalized_total_score in weekly_report_mv uses max_goal_score; max_score is unused.
ALTER TABLE weekly_goals DROP COLUMN IF EXISTS max_score;

View File

@@ -1,6 +1,6 @@
{
"name": "play-life-web",
"version": "5.2.0",
"version": "5.2.1",
"type": "module",
"scripts": {
"dev": "vite",