Hi all,
Firstly, some background. I am a relatively experienced php programmer, I can usually get things done simply. I don't have much experience coding php with drupal though. I have never made a custom module, but I have added some things to an existing module.
I am currently trying to convert a 4.7 module to 5.x, and eventually 6.x. But I am having some issues just getting from 4.7 to 5.x. I did a search for all the things listed on the upgrading modules to 5.x page from drupal.org. I found some, fixed some, but still having some issues.
One of them is an issue with the database, apparently the install function didn't work properly, I get errors because the tables don't exist. Did anything actually change that would prevent working 4.7 install code fromworking? I didn't notice anything. Here is the install function:
<?php
function thermometer_install()
{
$db_table_sold_trans = variable_get('db_table_sold_trans',"stellar_ipn_trans");
$db_table_sold_item = variable_get('db_table_sold_item',"stellar_ipn_item");
$db_build_trans = "
CREATE TABLE `$db_table_sold_trans` (
`id` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
`invoice` VARCHAR(127),
`custom` VARCHAR(255),
`test_ipn` INTEGER UNSIGNED DEFAULT 0,
`memo` VARCHAR(255),
`business` VARCHAR(127),
`receiver_id` VARCHAR(13),
`receiver_email` VARCHAR(127),