VbzCart/docs/tables/ord pull: Difference between revisions
Jump to navigation
Jump to search
imported>Woozle No edit summary |
imported>Woozle No edit summary |
||
Line 17: | Line 17: | ||
* SysUser -> legacy.WhoSystem | * SysUser -> legacy.WhoSystem | ||
* Machine -> legacy.WhoNetwork | * Machine -> legacy.WhoNetwork | ||
There are 1665 Order Pull events to migrate, and we have a gap in the event table from IDs 1230 to 6354, so let's start the pulls at ID 1500. | |||
==SQL== | ==SQL== | ||
<mysql>CREATE TABLE `ord_pull` ( | <mysql>CREATE TABLE `ord_pull` ( |
Revision as of 00:56, 2 June 2017
This documentation is obsolete, and is being kept solely for archival purposes. |
About
- Purpose: Log of order pulls/releases
- Notes: this will eventually be replaced by Template:Vbzcart
- Relates to: Template:Vbzcart, Template:Vbzcart
- Fields:
- WhenFreed (was WhenReleased): when the pull was cancelled/revoked; if it is set, this pull is inactive
- Notes* may include quite lengthy explanations of what happened (similar to Template:Vbzcart)
- History:
- 2009-07-09 Adapted from MS Access
- 2009-07-10 Expanded "Notes" from VARCHAR(255) to MEDIUMTEXT
- 2009-10-27 Added user/machine fields; Notes -> NotesPull, added NotesFree
- This should ease the transition to using the Template:Vbzcart table
Migration
Notes:
- VbzUser -> legacy.WhoAdmin
- SysUser -> legacy.WhoSystem
- Machine -> legacy.WhoNetwork
There are 1665 Order Pull events to migrate, and we have a gap in the event table from IDs 1230 to 6354, so let's start the pulls at ID 1500.
SQL
<mysql>CREATE TABLE `ord_pull` (
`ID` INT NOT NULL AUTO_INCREMENT, `ID_Ord` INT NOT NULL COMMENT "core_orders.ID", `ID_Type` INT NOT NULL COMMENT "ord_pull_type.ID", `WhenPulled` DATETIME NOT NULL COMMENT "when this pull occurred", `WhenFreed` DATETIME DEFAULT NULL COMMENT "when this pull was dropped",
/* fields relating to who pulled the order */
`VbzUser` VARCHAR(127) COMMENT "VbzCart username, if available", `SysUser` VARCHAR(127) COMMENT "operating system username, if available", `Machine` VARCHAR(63) NOT NULL COMMENT "network name or IP address of client", `NotesPull` MEDIUMTEXT DEFAULT NULL COMMENT "human-added notes about the pull", `NotesFree` MEDIUMTEXT DEFAULT NULL COMMENT "human-added notes about the release", PRIMARY KEY(`ID`)
) ENGINE = MYISAM;</mysql>