fix(number-fields): избегаем потери точности длинных чисел
- number-поля теперь рендерятся как text + inputMode=numeric, чтобы браузер не округлял значения через input type=number - пробелы при вставке в number-поля удаляются - бэкенд нормализует значения number-полей в строку перед сохранением - добавлен хелпер normalizeFieldValueForStorage Closes: искажение расчётного счёта и других длинных числовых полей
This commit is contained in:
14
migrations/0027_add_openstreetmap_default.sql
Normal file
14
migrations/0027_add_openstreetmap_default.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
-- Add OpenStreetMap as a default active external service for all existing organizations
|
||||
INSERT INTO external_services (organization_id, service_type, service_name, api_key, secret_key, config, is_active, created_at, updated_at)
|
||||
SELECT
|
||||
id,
|
||||
'openstreetmap',
|
||||
'OpenStreetMap (Nominatim)',
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
true,
|
||||
NOW(),
|
||||
NOW()
|
||||
FROM organizations
|
||||
ON CONFLICT (organization_id, service_type) DO NOTHING;
|
||||
Reference in New Issue
Block a user