| 1 |
<?php |
<?php |
| 2 |
/** |
/** |
| 3 |
* $Id: og2list.install,v 1.14 2006/09/05 21:32:36 killes Exp $ |
* $Id: og2list.install,v 1.15 2006/11/28 18:07:25 killes Exp $ |
| 4 |
* |
* |
| 5 |
* MySQL definitions for og2list.module |
* MySQL definitions for og2list.module |
| 6 |
* |
* |
| 242 |
} |
} |
| 243 |
return $ret; |
return $ret; |
| 244 |
} |
} |
| 245 |
|
|
| 246 |
|
// now using db_next_id() from Drupal API instead of mysql_next_id() when inserting new messages. |
| 247 |
|
function og2list_update_9() { |
| 248 |
|
$ret = array(); |
| 249 |
|
|
| 250 |
|
switch ($GLOBALS['db_type']) { |
| 251 |
|
case 'mysql': |
| 252 |
|
case 'mysqli': |
| 253 |
|
$ret[] = update_sql("ALTER TABLE og2list_outgoing_content CHANGE `mid` `mid` INT( 10 ) UNSIGNED NOT NULL"); |
| 254 |
|
$ret[] = update_sql("REPLACE INTO {sequences} (name,id) SELECT 'og2list_outgoing_content_mid' AS name, MAX(mid) AS id FROM og2list_outgoing_content"); |
| 255 |
|
} |
| 256 |
|
return $ret; |
| 257 |
|
} |