tamplan/Media-Manager-for-NAS-for-XBMC — Issue #13: No 'name' column created in 'sources' table
Author: Dutchnutcase
Created: 2012-01-31 09:24:42+00:00
State: open

The title says it all. The setup.php controller doesn't create a 'name' column in the 'sources' table, but it is referenced later on in the wizard.php library. Two solutions possible:

1. add the 'name' column creation to the wizard.php controller.
2. remove the reference to the 'name' column from the wizard.php library

The patch for the first solution is included below:

--- a/application/controllers/setup.php
+++ b/application/controllers/setup.php
@@ -237,6 +237,7 @@ class Setup extends CI_Controller

$this->dbforge->add_field("id int(11) NOT NULL AUTO_INCREMENT");
$this->dbforge->add_field("idPath int(11) NOT NULL");
+ $this->dbforge->add_field("name varchar(512) DEFAULT NULL");
$this->dbforge->add_field("client_path varchar(512) DEFAULT NULL");
$this->dbforge->add_field("server_path varchar(512) DEFAULT NULL");
$this->dbforge->add_field("media_db text");