fix bug 2

This commit is contained in:
2026-07-12 18:31:17 +03:30
parent 2cade8a334
commit b29cb4e37a
7 changed files with 223 additions and 9 deletions
@@ -0,0 +1,14 @@
-- سامانه‌های ردیابی (آنالیتیکس) — can_edit=0، مقدار JSON
INSERT INTO `settings` (`key`, `value`, `title_fa`, `type`, `can_edit`, `is_active`, `description`, `created_at`, `updated_at`)
SELECT
'tracking_systems',
'[]',
'سامانه‌های ردیابی',
'longtext',
0,
1,
'JSON: [{"type":"gtag","id":"G-XXXXXXX","enabled":true}] — type: gtag|gtm|clarity|custom',
NOW(),
NOW()
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'tracking_systems' LIMIT 1);