Mercurial > defr > drupal > ad
diff image/ad_image.install @ 1:948362c2a207 ad
update advertisement
author | pierre |
---|---|
date | Thu, 02 Apr 2009 15:28:21 +0000 |
parents | d8a3998dac8e |
children | e5584a19768b |
line wrap: on
line diff
--- a/image/ad_image.install Fri Feb 20 14:04:09 2009 +0000 +++ b/image/ad_image.install Thu Apr 02 15:28:21 2009 +0000 @@ -1,5 +1,5 @@ <?php -// $Id: ad_image.install,v 1.2.2.2.2.6.2.4 2009/02/16 17:06:49 jeremy Exp $ +// $Id: ad_image.install,v 1.2.2.2.2.6.2.4.2.2 2009/03/27 20:11:13 jeremy Exp $ /** * @file @@ -40,6 +40,12 @@ 'not null' => TRUE, 'default' => '', ), + 'remote_image' => array( + 'type' => 'varchar', + 'length' => '255', + 'not null' => TRUE, + 'default' => '', + ), 'width' => array( 'type' => 'int', 'unsigned' => TRUE, @@ -117,3 +123,18 @@ // Remove tables. drupal_uninstall_schema('ad_image'); } + +/** + * Introduce remote_image field for remotely hosted images. + */ +function ad_image_update_6001() { + $ret = array(); + db_add_field($ret, 'ad_image', 'remote_image', + array( + 'type' => 'varchar', + 'length' => '255', + 'not null' => TRUE, + 'default' => '', + )); + return $ret; +}