Mercurial > defr > drupal > ad
comparison image/ad_image.install @ 1:948362c2a207 ad
update advertisement
| author | pierre |
|---|---|
| date | Thu, 02 Apr 2009 15:28:21 +0000 |
| parents | d8a3998dac8e |
| children | e5584a19768b |
comparison
equal
deleted
inserted
replaced
| 0:d8a3998dac8e | 1:948362c2a207 |
|---|---|
| 1 <?php | 1 <?php |
| 2 // $Id: ad_image.install,v 1.2.2.2.2.6.2.4 2009/02/16 17:06:49 jeremy Exp $ | 2 // $Id: ad_image.install,v 1.2.2.2.2.6.2.4.2.2 2009/03/27 20:11:13 jeremy Exp $ |
| 3 | 3 |
| 4 /** | 4 /** |
| 5 * @file | 5 * @file |
| 6 * Ad_image module database schema. | 6 * Ad_image module database schema. |
| 7 * | 7 * |
| 33 'length' => '255', | 33 'length' => '255', |
| 34 'not null' => TRUE, | 34 'not null' => TRUE, |
| 35 'default' => '', | 35 'default' => '', |
| 36 ), | 36 ), |
| 37 'tooltip' => array( | 37 'tooltip' => array( |
| 38 'type' => 'varchar', | |
| 39 'length' => '255', | |
| 40 'not null' => TRUE, | |
| 41 'default' => '', | |
| 42 ), | |
| 43 'remote_image' => array( | |
| 38 'type' => 'varchar', | 44 'type' => 'varchar', |
| 39 'length' => '255', | 45 'length' => '255', |
| 40 'not null' => TRUE, | 46 'not null' => TRUE, |
| 41 'default' => '', | 47 'default' => '', |
| 42 ), | 48 ), |
| 115 } | 121 } |
| 116 | 122 |
| 117 // Remove tables. | 123 // Remove tables. |
| 118 drupal_uninstall_schema('ad_image'); | 124 drupal_uninstall_schema('ad_image'); |
| 119 } | 125 } |
| 126 | |
| 127 /** | |
| 128 * Introduce remote_image field for remotely hosted images. | |
| 129 */ | |
| 130 function ad_image_update_6001() { | |
| 131 $ret = array(); | |
| 132 db_add_field($ret, 'ad_image', 'remote_image', | |
| 133 array( | |
| 134 'type' => 'varchar', | |
| 135 'length' => '255', | |
| 136 'not null' => TRUE, | |
| 137 'default' => '', | |
| 138 )); | |
| 139 return $ret; | |
| 140 } |
