VbzCart/docs/tables/ dept ittyps: Difference between revisions
Jump to navigation
Jump to search
imported>Woozle (sources, used by) |
m (Woozle moved page VbzCart/VbzCart/tables/ dept ittyps to VbzCart/docs/tables/ dept ittyps without leaving a redirect: part 3/5) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
==About== | ==About== | ||
* '''Purpose''': cache table for catalog display | * '''Purpose''': cache table for catalog display | ||
* '''Used for''': customer-side department | * '''Used for''': customer-side supplier pages (/cat/xx/) | ||
** Earlier note indicated it was used for customer-side department page, but I don't see evidence of this. (2011-02-02) | |||
** Prior to 2011-02-02, a very slow query ({{vbzcart/query|qryItTypsDepts_ItTyps}}) was temporarily in use. | |||
* '''Sources''': {{vbzcart|proc|Upd_DeptIttyps_fr_TitleIttyps}}, {{vbzcart|proc|Upd_DeptIttyps_fr_CatIttyps}} | * '''Sources''': {{vbzcart|proc|Upd_DeptIttyps_fr_TitleIttyps}}, {{vbzcart|proc|Upd_DeptIttyps_fr_CatIttyps}} | ||
* '''Used by''': {{vbzcart|proc|Upd_Depts_fr_DeptIttyps}} | * '''Used by''': {{vbzcart|proc|Upd_Depts_fr_DeptIttyps}} | ||
* '''History''': | * '''History''': | ||
** '''2010-11-12''' (re)created in database -- apparently was not ported from L48 to Rizzo | ** '''2010-11-12''' (re)created in database -- apparently was not ported from L48 to Rizzo | ||
** '''2011-02-02''' added '''ID_Supp''' field so we can actually use this without doing another join | |||
==SQL== | ==SQL== | ||
<section begin=sql /><mysql> DROP TABLE IF EXISTS `_dept_ittyps`; | <section begin=sql /><mysql> DROP TABLE IF EXISTS `_dept_ittyps`; | ||
CREATE TABLE `_dept_ittyps` ( | CREATE TABLE `_dept_ittyps` ( | ||
`ID_ItTyp` | `ID_ItTyp` INT UNSIGNED NOT NULL, | ||
`ID_Dept` | `ID_Dept` INT UNSIGNED NOT NULL, | ||
`cntForSale` | `ID_Supp` INT UNSIGNED NOT NULL, | ||
`cntInPrint` | `cntForSale` INT UNSIGNED NOT NULL, | ||
`qtyInStock` | `cntInPrint` INT UNSIGNED NOT NULL, | ||
`ItTypNameSng` | `qtyInStock` INT UNSIGNED NOT NULL, | ||
`ItTypNamePlr` | `ItTypNameSng` VARCHAR(64) DEFAULT NULL COMMENT 'cat_ittyps.NameSng', | ||
`ItTypNamePlr` VARCHAR(64) DEFAULT NULL COMMENT 'cat_ittyps.NamePlr; default to ItTypNameSng', | |||
PRIMARY KEY (`ID_ItTyp`,`ID_Dept`) | PRIMARY KEY (`ID_ItTyp`,`ID_Dept`) | ||
) ENGINE=MyISAM;</mysql> | ) ENGINE=MyISAM;</mysql> | ||
<section end=sql /> | <section end=sql /> |
Latest revision as of 01:56, 25 February 2024
About
- Purpose: cache table for catalog display
- Used for: customer-side supplier pages (/cat/xx/)
- Earlier note indicated it was used for customer-side department page, but I don't see evidence of this. (2011-02-02)
- Prior to 2011-02-02, a very slow query (Template:Vbzcart/query) was temporarily in use.
- Sources: Template:Vbzcart, Template:Vbzcart
- Used by: Template:Vbzcart
- History:
- 2010-11-12 (re)created in database -- apparently was not ported from L48 to Rizzo
- 2011-02-02 added ID_Supp field so we can actually use this without doing another join
SQL
<section begin=sql /><mysql> DROP TABLE IF EXISTS `_dept_ittyps`;
CREATE TABLE `_dept_ittyps` ( `ID_ItTyp` INT UNSIGNED NOT NULL, `ID_Dept` INT UNSIGNED NOT NULL, `ID_Supp` INT UNSIGNED NOT NULL, `cntForSale` INT UNSIGNED NOT NULL, `cntInPrint` INT UNSIGNED NOT NULL, `qtyInStock` INT UNSIGNED NOT NULL, `ItTypNameSng` VARCHAR(64) DEFAULT NULL COMMENT 'cat_ittyps.NameSng', `ItTypNamePlr` VARCHAR(64) DEFAULT NULL COMMENT 'cat_ittyps.NamePlr; default to ItTypNameSng', PRIMARY KEY (`ID_ItTyp`,`ID_Dept`) ) ENGINE=MyISAM;</mysql>
<section end=sql />