diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-06-25 08:47:16 -0700 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-06-25 08:47:16 -0700 |
| commit | 4502a13a5b67946e798789ff5420877391372fcd (patch) | |
| tree | 00f44704d986ea6b48435ccc7c62ea1745ac3a70 /modules/digibug/helpers/digibug_installer.php | |
| parent | d9e4ad79bbebb3f439df4403c668271c86c19935 (diff) | |
1) rename the model proxy to digibug proxy
2) corresponding table name change to digibug_proxies
3) change the generate of a unique id to md5(rand())
3) Remove the helper function as digibug::uuid is no longer required.
Diffstat (limited to 'modules/digibug/helpers/digibug_installer.php')
| -rw-r--r-- | modules/digibug/helpers/digibug_installer.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/digibug/helpers/digibug_installer.php b/modules/digibug/helpers/digibug_installer.php index baff2075..120bd3ef 100644 --- a/modules/digibug/helpers/digibug_installer.php +++ b/modules/digibug/helpers/digibug_installer.php @@ -22,9 +22,9 @@ class digibug_installer { $version = module::get_version("digibug"); if ($version == 0) { Database::instance() - ->query("CREATE TABLE {proxies} ( + ->query("CREATE TABLE {digibug_proxies} ( `id` int(9) NOT NULL AUTO_INCREMENT, - `uuid` char(36) NOT NULL, + `uuid` char(32) NOT NULL, `request_date` TIMESTAMP NOT NULL DEFAULT current_timestamp, `item_id` int(9) NOT NULL, PRIMARY KEY (`id`)) @@ -39,7 +39,7 @@ class digibug_installer { } static function uninstall() { - Database::instance()->query("DROP TABLE IF EXISTS {proxies}"); + Database::instance()->query("DROP TABLE IF EXISTS {digibug_proxies}"); module::delete("digibug"); } } |
