comparison image/ad_image.install @ 2:e5584a19768b ad

maj module ad
author sly
date Wed, 15 Apr 2009 07:58:32 +0000
parents 948362c2a207
children
comparison
equal deleted inserted replaced
1:948362c2a207 2:e5584a19768b
1 <?php 1 <?php
2 // $Id: ad_image.install,v 1.2.2.2.2.6.2.4.2.2 2009/03/27 20:11:13 jeremy Exp $ 2 // $Id: ad_image.install,v 1.2.2.2.2.6.2.4.2.3 2009/04/02 15:48:29 jeremy Exp $
3 3
4 /** 4 /**
5 * @file 5 * @file
6 * Ad_image module database schema. 6 * Ad_image module database schema.
7 * 7 *
93 'type' => 'int', 93 'type' => 'int',
94 'unsigned' => TRUE, 94 'unsigned' => TRUE,
95 'not null' => TRUE, 95 'not null' => TRUE,
96 'default' => 0, 96 'default' => 0,
97 ), 97 ),
98 'max_size' => array(
99 'type' => 'int',
100 'unsigned' => TRUE,
101 'not null' => TRUE,
102 'default' => 0,
103 ),
98 ), 104 ),
99 'primary key' => array('gid'), 105 'primary key' => array('gid'),
100 ); 106 );
101 107
102 return $schema; 108 return $schema;
136 'not null' => TRUE, 142 'not null' => TRUE,
137 'default' => '', 143 'default' => '',
138 )); 144 ));
139 return $ret; 145 return $ret;
140 } 146 }
147
148 /**
149 * Introduce remote_image field for remotely hosted images.
150 */
151 function ad_image_update_6002() {
152 $ret = array();
153 db_add_field($ret, 'ad_image_format', 'max_size',
154 array(
155 'type' => 'int',
156 'unsigned' => TRUE,
157 'not null' => TRUE,
158 'default' => '0',
159 ));
160 return $ret;
161 }