Details |
Last modification |
View Log
| RSS feed
| Rev |
Author |
Line No. |
Line |
| 37268 |
amit |
1 |
-- Rename activated -> fresh with polarity inversion (fresh = NOT activated).
|
|
|
2 |
-- Only for environments that applied the original model_hot_deal_attributes.sql
|
|
|
3 |
-- (local dev / saholic-test); the prod script now creates `fresh` directly.
|
|
|
4 |
-- Date: 2026-08-08
|
|
|
5 |
|
|
|
6 |
ALTER TABLE catalog.model_hot_deal
|
|
|
7 |
CHANGE COLUMN activated fresh TINYINT(1) NOT NULL COMMENT 'true = device unused/sealed';
|
|
|
8 |
UPDATE catalog.model_hot_deal SET fresh = 1 - fresh;
|