CC-2698: Wrong sql statment

- fixed
This commit is contained in:
James 2011-08-18 15:39:46 -04:00
parent 873f7e1dae
commit 4240d45f5d
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ class Version20110711161043 extends AbstractMigration
$cc_files->addNamedForeignKeyConstraint('cc_music_dirs_folder_fkey', $cc_music_dirs, array('directory'), array('id'), array('onDelete' => 'CASCADE')); $cc_files->addNamedForeignKeyConstraint('cc_music_dirs_folder_fkey', $cc_music_dirs, array('directory'), array('id'), array('onDelete' => 'CASCADE'));
// before 3) we have to delete all entries in cc_schedule with file_id that are not in cc_file table // before 3) we have to delete all entries in cc_schedule with file_id that are not in cc_file table
$this->_addSql("DELETE FROM cc_schedule WHERE cc_schedule.id NOT IN( $this->_addSql("DELETE FROM cc_schedule WHERE cc_schedule.id IN(
SELECT cc_schedule.id SELECT cc_schedule.id
FROM cc_schedule FROM cc_schedule
LEFT JOIN cc_files LEFT JOIN cc_files