Quad.Wiki

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

1. Удалить историю цен, начиная с какой-то даты

delete from price_history where upd_date > '2021-03-19'

где 2021-03-19 - дата в формате год-месяц-число

2. Очистить положение окон, если вдруг вы использовали какой-то большой монитор и на другом компьютере окна перестали быть видны (сохранились за пределами экрана)

update users set user_options = null, all_cnct_qnet = null, 
	all_cnct_prod = null, all_cnct_price = null, wwp_quad_connect = null, 
	post_konk_view = null, suppl_view = null

3. Установить код товара запросом

update product set 
code = concat('ml', LPAD(id::text, 6, '0'))
where code is null;
update product set 
extsrch = left(concat(upper(code), extsrch), 255)
where extsrch not like(concat('%', upper(code), '%'))

где 'ml' - префикс кода, тексту внутри '' вы можете поменять на свой. Код формируется из префикса + QID товара, например ml000012

  • No labels