VbzCart/docs/tables/ctg upd1: Difference between revisions
Jump to navigation
Jump to search
imported>Woozle (+ID_Supp) |
imported>Woozle (TitleName) |
||
Line 5: | Line 5: | ||
* '''History''': | * '''History''': | ||
** '''2010-12-29''' Added '''ID_Supp''' field because {{vbzcart|table|cat_items}} now has that field too | ** '''2010-12-29''' Added '''ID_Supp''' field because {{vbzcart|table|cat_items}} now has that field too | ||
** '''2011-01-02''' Added '''TitleName''' to fill in new '''Descr''' field in {{vbzcart|table|cat_items}} | |||
==SQL== | ==SQL== | ||
<section begin=sql /><mysql>CREATE TABLE `ctg_upd1` ( | <section begin=sql /><mysql>CREATE TABLE `ctg_upd1` ( | ||
Line 21: | Line 22: | ||
ItOpt_Descr_part VARCHAR(63), | ItOpt_Descr_part VARCHAR(63), | ||
NameSng VARCHAR(63), | NameSng VARCHAR(63), | ||
TitleName VARCHAR(127), | |||
GrpItmDescr VARCHAR(63), | GrpItmDescr VARCHAR(63), | ||
TitleGroupDescr VARCHAR(63), | TitleGroupDescr VARCHAR(63), |
Revision as of 00:48, 3 January 2011
About
- Purpose: intermediate calculations for updating Template:Vbzcart from catalog-source tables
- Replaces Template:Vbzcart which never worked entirely properly.
- Source: Template:Vbzcart/query (essential fields only)
- History:
- 2010-12-29 Added ID_Supp field because Template:Vbzcart now has that field too
- 2011-01-02 Added TitleName to fill in new Descr field in Template:Vbzcart
SQL
<section begin=sql /><mysql>CREATE TABLE `ctg_upd1` (
CatSfx VARCHAR(31), isCloseOut BOOL, ID_CTG_Title INT, ID_CTG_Item INT, ID_Supp INT, ID_Title INT, ID_ItTyp INT, ID_ItOpt INT, ID_ShipCost INT, PriceBuy DECIMAL(9,2), PriceSell DECIMAL(9,2), PriceList DECIMAL(9,2), ItOpt_Descr_part VARCHAR(63), NameSng VARCHAR(63), TitleName VARCHAR(127), GrpItmDescr VARCHAR(63), TitleGroupDescr VARCHAR(63), OptionDescr VARCHAR(63), ItOpt_Sort VARCHAR(31), GrpCode VARCHAR(15), GrpDescr VARCHAR(31), GrpSort VARCHAR(31), IDS_Item VARCHAR(31), CatNum VARCHAR(31), ItOpt_Descr VARCHAR(63), PRIMARY KEY(`IDS_Item`)
) ENGINE = MYISAM;</mysql> <section end=sql />