- number-поля теперь рендерятся как text + inputMode=numeric, чтобы браузер не округлял значения через input type=number - пробелы при вставке в number-поля удаляются - бэкенд нормализует значения number-полей в строку перед сохранением - добавлен хелпер normalizeFieldValueForStorage Closes: искажение расчётного счёта и других длинных числовых полей
11 lines
554 B
SQL
11 lines
554 B
SQL
-- Idempotent migration: adds reaction_unread_count to conversation_members.
|
|
-- Tracks per-user count of unread emoji reactions on their own messages within a conversation.
|
|
-- Safe to run multiple times: uses ADD COLUMN IF NOT EXISTS.
|
|
|
|
-- ============================================================
|
|
-- conversation_members table: reaction unread counter
|
|
-- ============================================================
|
|
ALTER TABLE conversation_members
|
|
ADD COLUMN IF NOT EXISTS reaction_unread_count integer NOT NULL DEFAULT 0;
|
|
--> statement-breakpoint
|