diff --git a/VERSION b/VERSION index b12c06c18..df9515d6e 100644 --- a/VERSION +++ b/VERSION @@ -1,2 +1,2 @@ PRODUCT_ID=Airtime -PRODUCT_RELEASE=1.9.0 +PRODUCT_RELEASE=1.9.1 diff --git a/airtime_mvc/application/configs/constants.php b/airtime_mvc/application/configs/constants.php index 1eb796bf1..28db07932 100644 --- a/airtime_mvc/application/configs/constants.php +++ b/airtime_mvc/application/configs/constants.php @@ -1,6 +1,6 @@ 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 + $this->_addSql("DELETE FROM cc_schedule WHERE cc_schedule.id NOT IN( + SELECT cc_schedule.id + FROM cc_schedule + LEFT JOIN cc_files + ON cc_schedule.file_id = cc_files.id + WHERE cc_files.id IS NULL)"); /* 3) create a foreign key relationship from cc_schedule to cc_files */ $cc_schedule = $schema->getTable('cc_schedule'); $cc_schedule->addNamedForeignKeyConstraint('cc_files_folder_fkey', $cc_files, array('file_id'), array('id'), array('onDelete' => 'CASCADE')); diff --git a/python_apps/api_clients/api_client.py b/python_apps/api_clients/api_client.py index ccbfeb909..7456a3550 100644 --- a/python_apps/api_clients/api_client.py +++ b/python_apps/api_clients/api_client.py @@ -21,7 +21,7 @@ from urlparse import urlparse import base64 from configobj import ConfigObj -AIRTIME_VERSION = "1.9.0-devel" +AIRTIME_VERSION = "1.9.1" def api_client_factory(config): logger = logging.getLogger()