raena-crawler-engine/hasaki_crawler_engine/changes.sql

79 lines
3.1 KiB
MySQL
Raw Normal View History

2024-03-14 05:16:59 +00:00
ALTER TABLE test_spider_management.rce_category ADD category_parent_name varchar(24000) NULL;
ALTER TABLE test_spider_management.aud_rce_category ADD category_parent_name varchar(24000) NULL;
CREATE TABLE IF NOT EXISTS test_spider_management.crawler_tracker_hasaki
(
crawler_name VARCHAR(24000) ENCODE lzo
,product_section VARCHAR(24000) ENCODE lzo
,product_name VARCHAR(24000) ENCODE lzo
,product_url VARCHAR(24000) ENCODE lzo
,product_image VARCHAR(24000) ENCODE lzo
,product_sold INTEGER NOT NULL ENCODE az64
,product_brand VARCHAR(24000) ENCODE lzo
,gift VARCHAR(24000) ENCODE lzo
,product_rank INTEGER NOT NULL ENCODE az64
,categoryid INTEGER NOT NULL ENCODE az64
,flag SMALLINT DEFAULT 0 ENCODE az64
)
DISTSTYLE AUTO
;
ALTER TABLE test_spider_management.rce_brand ADD brand_following int8 NULL;
ALTER TABLE test_spider_management.rce_brand ADD brand_rating int8 NULL;
ALTER TABLE test_spider_management.aud_rce_brand ADD brand_following int8 NULL;
ALTER TABLE test_spider_management.aud_rce_brand ADD brand_rating int8 NULL;
ALTER TABLE test_spider_management.rce_product_variant ADD product_variant_sku varchar(1000) NULL;
ALTER TABLE test_spider_management.aud_rce_product_variant ADD product_variant_sku varchar(1000) NULL;
CREATE TABLE IF NOT EXISTS test_spider_management.rce_seo
(
id INTEGER ENCODE az64
,rce_product_id INTEGER ENCODE az64
,rce_source_id INTEGER ENCODE az64
,seo_title VARCHAR(2000) ENCODE lzo
,seo_description VARCHAR(10000) ENCODE lzo
,seo_url VARCHAR(2000) ENCODE lzo
,seo_url_hash VARCHAR(2000) ENCODE lzo
,seo_image VARCHAR(2000) ENCODE lzo
,seo_price_amount BIGINT ENCODE az64
,seo_price_currency VARCHAR(2000) ENCODE lzo
,seo_product_band VARCHAR(2000) ENCODE lzo
,seo_product_availability VARCHAR(2000) ENCODE lzo
,seo_product_category VARCHAR(2000) ENCODE lzo
,seo_product_condition VARCHAR(2000) ENCODE lzo
,seo_product_retailer_item_id BIGINT ENCODE az64
,seo_product_robots VARCHAR(2000) ENCODE lzo
,createdat TIMESTAMP WITHOUT TIME ZONE DEFAULT getdate() ENCODE az64
,updatedat TIMESTAMP WITHOUT TIME ZONE DEFAULT getdate() ENCODE az64
)
DISTSTYLE AUTO
;
CREATE TABLE IF NOT EXISTS test_spider_management.aud_rce_seo
(
auditid INTEGER ENCODE az64
,id INTEGER ENCODE az64
,rce_product_id INTEGER ENCODE az64
,rce_source_id INTEGER ENCODE az64
,seo_title VARCHAR(2000) ENCODE lzo
,seo_description VARCHAR(10000) ENCODE lzo
,seo_url VARCHAR(2000) ENCODE lzo
,seo_url_hash VARCHAR(2000) ENCODE lzo
,seo_image VARCHAR(2000) ENCODE lzo
,seo_price_amount BIGINT ENCODE az64
,seo_price_currency VARCHAR(2000) ENCODE lzo
,seo_product_band VARCHAR(2000) ENCODE lzo
,seo_product_availability VARCHAR(2000) ENCODE lzo
,seo_product_category VARCHAR(2000) ENCODE lzo
,seo_product_condition VARCHAR(2000) ENCODE lzo
,seo_product_retailer_item_id BIGINT ENCODE az64
,seo_product_robots VARCHAR(2000) ENCODE lzo
,createdat TIMESTAMP WITHOUT TIME ZONE ENCODE az64
,updatedat TIMESTAMP WITHOUT TIME ZONE ENCODE az64
,audit_createdat TIMESTAMP WITHOUT TIME ZONE DEFAULT getdate() ENCODE az64
)
DISTSTYLE AUTO
;