fix all error 3
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
|
||||
START TRANSACTION;
|
||||
|
||||
UPDATE `settings` SET `value` = 'zaarbox' WHERE `key` = 'price_provider';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `value` = 'zaarbox' WHERE `key` = 'price_provider';
|
||||
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
SELECT 'price_provider', 'zaarbox', 'منبع قیمت', 1, 1, 'zaarbox | main_product | montzar'
|
||||
@@ -12,7 +13,8 @@ WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'price_provider' LIMIT
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
SELECT 'zaarbox_api_url', 'https://price.zaarbox.ir/api/free', 'آدرس API تابلو', 1, 1, NULL
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'zaarbox_api_url' LIMIT 1);
|
||||
UPDATE `settings` SET `value` = 'https://price.zaarbox.ir/api/free' WHERE `key` = 'zaarbox_api_url';
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET `value` = 'https://price.zaarbox.ir/api/free' WHERE `key` = 'zaarbox_api_url';
|
||||
|
||||
-- key ردیف در JSON (یا UUID فیلد id) — از Network تابلو کپی کنید
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
|
||||
|
||||
Reference in New Issue
Block a user