CC-2806: Create upgrade template file
-missing function -comment out redundant code -Create cc_component table on upgrade
This commit is contained in:
parent
d93a9edcd2
commit
3c6692ebce
|
@ -0,0 +1,23 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace DoctrineMigrations;
|
||||||
|
|
||||||
|
use Doctrine\DBAL\Migrations\AbstractMigration,
|
||||||
|
Doctrine\DBAL\Schema\Schema;
|
||||||
|
|
||||||
|
class Version20110929184401 extends AbstractMigration
|
||||||
|
{
|
||||||
|
public function up(Schema $schema)
|
||||||
|
{
|
||||||
|
$cc_component = $schema->createTable('cc_component');
|
||||||
|
$cc_component->addColumn('name', 'string', array('length' => 32));
|
||||||
|
$cc_component->addColumn('ip', 'string', array('length' => 18));
|
||||||
|
|
||||||
|
$cc_component->setPrimaryKey(array('name'));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down(Schema $schema)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
|
@ -363,7 +363,7 @@ class AirtimeDatabaseUpgrade{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
UpgradeCommon::MigrateTablesToVersion(__DIR__, '20110925171256');
|
UpgradeCommon::MigrateTablesToVersion(__DIR__, '20110929184401');
|
||||||
}
|
}
|
||||||
|
|
||||||
private static function SetDefaultStreamSetting()
|
private static function SetDefaultStreamSetting()
|
||||||
|
|
|
@ -13,6 +13,9 @@ api_base = 'api'
|
||||||
# URL to get the version number of the server API
|
# URL to get the version number of the server API
|
||||||
version_url = 'version/api_key/%%api_key%%'
|
version_url = 'version/api_key/%%api_key%%'
|
||||||
|
|
||||||
|
#URL to register a components IP Address with the central web server
|
||||||
|
register_component = 'register-component/format/json/api_key/%%api_key%%/component/%%component%%'
|
||||||
|
|
||||||
# Hostname
|
# Hostname
|
||||||
base_url = 'localhost'
|
base_url = 'localhost'
|
||||||
base_port = 80
|
base_port = 80
|
||||||
|
@ -45,9 +48,6 @@ remove_watched_dir = 'remove-watched-dir/format/json/api_key/%%api_key%%/path/%%
|
||||||
# URL to tell Airtime we want to add watched directory
|
# URL to tell Airtime we want to add watched directory
|
||||||
set_storage_dir = 'set-storage-dir/format/json/api_key/%%api_key%%/path/%%path%%'
|
set_storage_dir = 'set-storage-dir/format/json/api_key/%%api_key%%/path/%%path%%'
|
||||||
|
|
||||||
# URL to tell Airtime we want to get stream setting
|
|
||||||
get_stream_setting = 'get-stream-setting/format/json/api_key/%%api_key%%/'
|
|
||||||
|
|
||||||
#############################
|
#############################
|
||||||
## Config for Recorder
|
## Config for Recorder
|
||||||
#############################
|
#############################
|
||||||
|
@ -89,6 +89,8 @@ update_start_playing_url = 'notify-media-item-start-play/api_key/%%api_key%%/med
|
||||||
# ???
|
# ???
|
||||||
generate_range_url = 'generate_range_dp.php'
|
generate_range_url = 'generate_range_dp.php'
|
||||||
|
|
||||||
|
# URL to tell Airtime we want to get stream setting
|
||||||
|
get_stream_setting = 'get-stream-setting/format/json/api_key/%%api_key%%/'
|
||||||
|
|
||||||
##############
|
##############
|
||||||
# OBP config #
|
# OBP config #
|
||||||
|
|
|
@ -561,7 +561,6 @@ class AirTimeApiClient(ApiClientInterface):
|
||||||
response = urllib2.urlopen(req).read()
|
response = urllib2.urlopen(req).read()
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
logger.error("Exception: %s", e)
|
logger.error("Exception: %s", e)
|
||||||
logger.error("Response: %s", response)
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# OpenBroadcast API Client
|
# OpenBroadcast API Client
|
||||||
|
|
Loading…
Reference in New Issue