| Revision 73,
440 bytes
checked in by nigel, 5 years ago
(diff) |
|
Added install method to create table (UNTESTED)
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | |
|---|
| 3 | function meter_install() { |
|---|
| 4 | switch ($GLOBALS['db_type']) { |
|---|
| 5 | case 'mysql': |
|---|
| 6 | case 'mysqli': |
|---|
| 7 | case 'pgsql': |
|---|
| 8 | default: |
|---|
| 9 | db_query("CREATE TABLE `meter_readings` ( |
|---|
| 10 | `nid` INT( 10 ) NOT NULL , |
|---|
| 11 | `time` DATETIME NOT NULL , |
|---|
| 12 | `value` DECIMAL NOT NULL, |
|---|
| 13 | `comment` VARCHAR( 255 ) |
|---|
| 14 | )"); |
|---|
| 15 | } |
|---|
| 16 | //drupal_set_message(t('Organic groups module enabled. Please see the included readme.txt file for further installation instructions.')); |
|---|
| 17 | } |
|---|
| 18 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.