Mercurial > defr > drupal > ad
diff image/ad_image.install @ 2:e5584a19768b ad
maj module ad
author | sly |
---|---|
date | Wed, 15 Apr 2009 07:58:32 +0000 |
parents | 948362c2a207 |
children |
line wrap: on
line diff
--- a/image/ad_image.install Thu Apr 02 15:28:21 2009 +0000 +++ b/image/ad_image.install Wed Apr 15 07:58:32 2009 +0000 @@ -1,5 +1,5 @@ <?php -// $Id: ad_image.install,v 1.2.2.2.2.6.2.4.2.2 2009/03/27 20:11:13 jeremy Exp $ +// $Id: ad_image.install,v 1.2.2.2.2.6.2.4.2.3 2009/04/02 15:48:29 jeremy Exp $ /** * @file @@ -95,6 +95,12 @@ 'not null' => TRUE, 'default' => 0, ), + 'max_size' => array( + 'type' => 'int', + 'unsigned' => TRUE, + 'not null' => TRUE, + 'default' => 0, + ), ), 'primary key' => array('gid'), ); @@ -138,3 +144,18 @@ )); return $ret; } + +/** + * Introduce remote_image field for remotely hosted images. + */ +function ad_image_update_6002() { + $ret = array(); + db_add_field($ret, 'ad_image_format', 'max_size', + array( + 'type' => 'int', + 'unsigned' => TRUE, + 'not null' => TRUE, + 'default' => '0', + )); + return $ret; +}