| 1 |
<?php |
<?php |
| 2 |
// $Id: workflow.install,v 1.12 2008/12/29 20:17:51 jvandyk Exp $ |
// $Id: workflow.install,v 1.13 2008/12/31 21:25:05 jvandyk Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Implementation of hook_install(). |
* Implementation of hook_install(). |
| 400 |
switch ($GLOBALS['db_type']) { |
switch ($GLOBALS['db_type']) { |
| 401 |
case 'mysqli': |
case 'mysqli': |
| 402 |
case 'mysql': |
case 'mysql': |
| 403 |
$workflows = db_result(db_query("SHOW COLUMNS FROM workflows WHERE field = 'wid' and extra REGEXP 'auto_increment'")); |
$workflows = db_result(db_query("SHOW COLUMNS FROM {workflows} WHERE field = 'wid' and extra REGEXP 'auto_increment'")); |
| 404 |
$workflow_states = db_result(db_query("SHOW COLUMNS FROM workflow_states WHERE field = 'sid' and extra REGEXP 'auto_increment'")); |
$workflow_states = db_result(db_query("SHOW COLUMNS FROM {workflow_states} WHERE field = 'sid' and extra REGEXP 'auto_increment'")); |
| 405 |
$workflow_transitions = db_result(db_query("SHOW COLUMNS FROM workflow_transitions WHERE field = 'tid' and extra REGEXP 'auto_increment'")); |
$workflow_transitions = db_result(db_query("SHOW COLUMNS FROM {workflow_transitions} WHERE field = 'tid' and extra REGEXP 'auto_increment'")); |
| 406 |
break; |
break; |
| 407 |
case 'pgsql': |
case 'pgsql': |
| 408 |
// Not sure how determine if a PostgreSQL field has a sequence. |
// Not sure how determine if a PostgreSQL field has a sequence. |