@@ 40-53 (lines=14) @@ | ||
37 | * @return array Array of table schema |
|
38 | * @access public |
|
39 | */ |
|
40 | public function update_schema() |
|
41 | { |
|
42 | return array( |
|
43 | 'add_tables' => array( |
|
44 | $this->table_prefix . 'ad_locations' => array( |
|
45 | 'COLUMNS' => array( |
|
46 | 'ad_id' => array('UINT', 0), |
|
47 | 'location_id' => array('VCHAR:255', ''), |
|
48 | ), |
|
49 | 'PRIMARY_KEY' => array('ad_id', 'location_id'), |
|
50 | ), |
|
51 | ), |
|
52 | ); |
|
53 | } |
|
54 | ||
55 | /** |
|
56 | * Drop the ad_locations table schema from the database |
@@ 41-54 (lines=14) @@ | ||
38 | * @return array Array of table schema |
|
39 | * @access public |
|
40 | */ |
|
41 | public function update_schema() |
|
42 | { |
|
43 | return array( |
|
44 | 'add_tables' => array( |
|
45 | $this->table_prefix . 'ad_group' => array( |
|
46 | 'COLUMNS' => array( |
|
47 | 'ad_id' => array('UINT', 0), |
|
48 | 'group_id' => array('UINT', 0), |
|
49 | ), |
|
50 | 'PRIMARY_KEY' => array('ad_id', 'group_id'), |
|
51 | ), |
|
52 | ), |
|
53 | ); |
|
54 | } |
|
55 | ||
56 | /** |
|
57 | * Drop the ad_group table |