no delete at this time
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 26 Nov 2014 16:10:31 +0000 (11:10 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 26 Nov 2014 16:10:31 +0000 (11:10 -0500)
models/database.php

index 569fdef..e06a967 100644 (file)
@@ -44,10 +44,6 @@ class glm_members_models_database
             GLM_MEMBERS_PLUGIN_FILE_PATH,
             array($this, 'install')
         );
-        register_uninstall_hook(
-            GLM_MEMBERS_PLUGIN_FILE_PATH,
-            array($this, 'delete')
-        );
         add_action('plugins_loaded', array($this, 'glm_members_update_db_check'));
 
         $this->membersTable  = $this->wpdb->prefix . GLM_MEMBERS_MEMBER_TABLE;
@@ -87,12 +83,4 @@ class glm_members_models_database
         }
     }
 
-    public function delete()
-    {
-        $sql = "
-        DROP TABLE IF EXISTS {$this->membersTable} ";
-        $this->wpdb->query($sql);
-        delete_option(GLM_MEMBERS_VRS_OPTION_NAME);
-    }
-
 }