CC-2562 : Allow users to convert linked files into watched directories
This commit is contained in:
parent
eb3584dfa6
commit
6f9a5b3d3f
|
@ -16,7 +16,7 @@ class Version20110711161043 extends AbstractMigration
|
|||
public function up(Schema $schema)
|
||||
{
|
||||
/* 1) update cc_files table to include to "directory" column */
|
||||
$this->_addSql("INSERT INTO cc_music_dirs (type, directory) VALUES ('stor', '/srv/airtime/stor');");
|
||||
$this->_addSql("INSERT INTO cc_music_dirs (type, directory) VALUES ('stor', '/srv/airtime/stor/');");
|
||||
|
||||
$this->_addSql("INSERT INTO cc_music_dirs (type, directory) VALUES ('link', '');");
|
||||
|
||||
|
@ -24,7 +24,7 @@ class Version20110711161043 extends AbstractMigration
|
|||
|
||||
/* 2) create a foreign key relationship from cc_files to cc_music_dirs */
|
||||
$cc_files = $schema->getTable('cc_files');
|
||||
$cc_files->addColumn('directory', 'integer', array('default'=> 2));
|
||||
$cc_files->addColumn('directory', 'integer', array('default'=> NULL));
|
||||
|
||||
$cc_files->addNamedForeignKeyConstraint('cc_music_dirs_folder_fkey', $cc_music_dirs, array('directory'), array('id'), array('onDelete' => 'CASCADE'));
|
||||
|
||||
|
|
|
@ -638,7 +638,7 @@ class Airtime190Upgrade{
|
|||
->filterByDbDirectory(NULL)
|
||||
->find();
|
||||
|
||||
// You won't get a Fatal error for not enough memory with the following code
|
||||
//Check to see if the file still exists. (Could have still some entries
|
||||
foreach($db_files as $db_file) {
|
||||
echo $db_file->DbTrackTitle();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue