fix(settings): PHP sync for runtime can_edit after deploy

Force can_edit=1 for Montzar/price runtime keys via settings:deploy
and settings:sync-runtime-can-edit, so tenant DB stays correct even
when an older deploy SQL is still on the server.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-19 21:07:12 +03:30
co-authored by Cursor
parent b7eed369c6
commit 924234bb19
6 changed files with 169 additions and 0 deletions
+4
View File
@@ -2168,6 +2168,10 @@ UPDATE `settings` SET `can_edit` = 1 WHERE `key` IN (
'up_price', 'down_price', 'price_extreme_date', 'do_send_liman'
);
SELECT `key`, `can_edit` FROM `settings`
WHERE `key` IN ('montzar_token', 'montzar_diff', 'montzar_open_buy')
ORDER BY `key`;
COMMIT;
SELECT 'deploy_settings_const.sql finished' AS status;