41 lines
1.0 KiB
SQL
41 lines
1.0 KiB
SQL
-- گلد علی — حذف کلیدهای legacy (لیمان/منتزر/اتحادیه)
|
|
-- قبل از اجرا: بکاپ. جدول const یا cnt بسته به اسکیمای شما.
|
|
|
|
START TRANSACTION;
|
|
|
|
-- settings — لیمان / منتزر / منابع قیمت غیرفعال
|
|
DELETE FROM `settings` WHERE `key` IN (
|
|
'do_send_liman',
|
|
'liman_token',
|
|
'montzar_price',
|
|
'montzar_base_url',
|
|
'montzar_product_id',
|
|
'montzar_closed',
|
|
'montzar_open_buy',
|
|
'montzar_open_sell',
|
|
'montzar_live_price',
|
|
'montzar_diff',
|
|
'montzar_mazaneh',
|
|
'montzar_truly_buy_mazaneh',
|
|
'montzar_truly_sell_mazaneh',
|
|
'tabanGohar_price',
|
|
'main_product_price',
|
|
'price_primary_source',
|
|
'fee'
|
|
);
|
|
|
|
-- const — API قیمت لیمان (نه کلید liman در JSON تراز ادمین)
|
|
DELETE FROM `const` WHERE `key` IN (
|
|
'liman_diff',
|
|
'liman_price',
|
|
'liman_mazaneh',
|
|
'liman_truly_buy_mazaneh',
|
|
'liman_truly_sell_mazaneh',
|
|
'liman_closed',
|
|
'log'
|
|
);
|
|
|
|
COMMIT;
|
|
|
|
-- اگر نام جدول cnt است: settings → setting و const → cnt
|