adding upgrades to 2.4.1 for version.
This commit is contained in:
parent
6d5531f341
commit
186e438ccb
8 changed files with 46 additions and 6 deletions
4
CREDITS
4
CREDITS
|
@ -2,10 +2,8 @@
|
||||||
CREDITS
|
CREDITS
|
||||||
=======
|
=======
|
||||||
|
|
||||||
Version 2.4.0
|
Version 2.4.1
|
||||||
-------------
|
-------------
|
||||||
Martin Konecny (martin.konecny@sourcefabric.org)
|
|
||||||
Role: Developer Team Lead
|
|
||||||
|
|
||||||
Denise Rigato (denise.rigato@sourcefabric.org)
|
Denise Rigato (denise.rigato@sourcefabric.org)
|
||||||
Role: Software Developer
|
Role: Software Developer
|
||||||
|
|
2
VERSION
2
VERSION
|
@ -1,2 +1,2 @@
|
||||||
PRODUCT_ID=Airtime
|
PRODUCT_ID=Airtime
|
||||||
PRODUCT_RELEASE=2.4.0
|
PRODUCT_RELEASE=2.4.1
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
2.4.1 - August 28th, 2013
|
||||||
|
* Bug Fixes
|
||||||
|
* Playout Engine locking issue
|
||||||
|
* Liquidsoap input harbor blocking scheduled contents
|
||||||
|
* Mono file playout problems
|
||||||
|
* Adding watched folder sometimes causes an exception based on length format
|
||||||
|
|
||||||
2.4.0 - June 18th, 2013
|
2.4.0 - June 18th, 2013
|
||||||
* New features
|
* New features
|
||||||
* Show linking
|
* Show linking
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
define('AIRTIME_VERSION', '2.4.0');
|
define('AIRTIME_VERSION', '2.4.1');
|
||||||
|
|
24
install_minimal/upgrades/airtime-2.4.1/DbUpgrade.php
Normal file
24
install_minimal/upgrades/airtime-2.4.1/DbUpgrade.php
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/* All functions other than start() should be marked as
|
||||||
|
* private.
|
||||||
|
*/
|
||||||
|
class AirtimeDatabaseUpgrade{
|
||||||
|
|
||||||
|
public static function start($p_dbValues){
|
||||||
|
echo "* Updating Database".PHP_EOL;
|
||||||
|
self::task0($p_dbValues);
|
||||||
|
echo " * Complete".PHP_EOL;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static function task0($p_dbValues){
|
||||||
|
|
||||||
|
$username = $p_dbValues['database']['dbuser'];
|
||||||
|
$password = $p_dbValues['database']['dbpass'];
|
||||||
|
$host = $p_dbValues['database']['host'];
|
||||||
|
$database = $p_dbValues['database']['dbname'];
|
||||||
|
$dir = __DIR__;
|
||||||
|
|
||||||
|
passthru("export PGPASSWORD=$password && psql -h $host -U $username -q -f $dir/data/upgrade.sql $database 2>&1 | grep -v \"will create implicit index\"");
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,8 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
require_once 'DbUpgrade.php';
|
||||||
|
|
||||||
|
$filename = "/etc/airtime/airtime.conf";
|
||||||
|
$values = parse_ini_file($filename, true);
|
||||||
|
|
||||||
|
AirtimeDatabaseUpgrade::start($values);
|
3
install_minimal/upgrades/airtime-2.4.1/data/upgrade.sql
Normal file
3
install_minimal/upgrades/airtime-2.4.1/data/upgrade.sql
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
DELETE FROM cc_pref WHERE keystr = 'system_version';
|
||||||
|
INSERT INTO cc_pref (keystr, valstr) VALUES ('system_version', '2.4.1');
|
||||||
|
|
|
@ -16,7 +16,7 @@ import base64
|
||||||
import traceback
|
import traceback
|
||||||
from configobj import ConfigObj
|
from configobj import ConfigObj
|
||||||
|
|
||||||
AIRTIME_VERSION = "2.4.0"
|
AIRTIME_VERSION = "2.4.1"
|
||||||
|
|
||||||
|
|
||||||
# TODO : Place these functions in some common module. Right now, media
|
# TODO : Place these functions in some common module. Right now, media
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue