Merge branch 'devel' of dev.sourcefabric.org:airtime into devel
This commit is contained in:
commit
a41f100545
|
@ -206,7 +206,6 @@ AIRTIME = (function(AIRTIME) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/*
|
|
||||||
//check if the timeline viewed needs updating.
|
//check if the timeline viewed needs updating.
|
||||||
setInterval(function(){
|
setInterval(function(){
|
||||||
var data = {},
|
var data = {},
|
||||||
|
@ -238,7 +237,7 @@ AIRTIME = (function(AIRTIME) {
|
||||||
} );
|
} );
|
||||||
|
|
||||||
}, 5 * 1000); //need refresh in milliseconds
|
}, 5 * 1000); //need refresh in milliseconds
|
||||||
*/
|
|
||||||
};
|
};
|
||||||
|
|
||||||
mod.onResize = function() {
|
mod.onResize = function() {
|
||||||
|
|
|
@ -14,18 +14,26 @@ class Version20120411102907 extends AbstractMigration
|
||||||
*/
|
*/
|
||||||
public function up(Schema $schema)
|
public function up(Schema $schema)
|
||||||
{
|
{
|
||||||
$this->_addSql("ALTER TABLE cc_files ALTER COLUMN length TYPE interval DEFAULT '00:00:00'");
|
$this->_addSql("ALTER TABLE cc_files ALTER COLUMN length TYPE interval");
|
||||||
|
$this->_addSql("ALTER TABLE cc_files ALTER COLUMN length SET DEFAULT '00:00:00'::interval");
|
||||||
$this->_addSql("ALTER TABLE cc_files ALTER COLUMN file_exists DROP NOT NULL");
|
$this->_addSql("ALTER TABLE cc_files ALTER COLUMN file_exists DROP NOT NULL");
|
||||||
|
|
||||||
$this->_addSql("ALTER TABLE cc_playlistcontents ALTER COLUMN cuein TYPE interval DEFAULT '00:00:00'");
|
$this->_addSql("ALTER TABLE cc_playlistcontents ALTER COLUMN cuein TYPE interval");
|
||||||
$this->_addSql("ALTER TABLE cc_playlistcontents ALTER COLUMN cueout TYPE interval DEFAULT '00:00:00'");
|
$this->_addSql("ALTER TABLE cc_playlistcontents ALTER COLUMN cuein SET DEFAULT '00:00:00'");
|
||||||
$this->_addSql("ALTER TABLE cc_playlistcontents ALTER COLUMN cliplength TYPE interval DEFAULT '00:00:00'");
|
$this->_addSql("ALTER TABLE cc_playlistcontents ALTER COLUMN cueout TYPE interval");
|
||||||
|
$this->_addSql("ALTER TABLE cc_playlistcontents ALTER COLUMN cueout SET DEFAULT '00:00:00'");
|
||||||
|
$this->_addSql("ALTER TABLE cc_playlistcontents ALTER COLUMN cliplength TYPE interval");
|
||||||
|
$this->_addSql("ALTER TABLE cc_playlistcontents ALTER COLUMN cliplength SET DEFAULT '00:00:00'");
|
||||||
|
|
||||||
$this->_addSql("ALTER TABLE cc_schedule ALTER COLUMN cue_in TYPE interval DEFAULT '00:00:00'");
|
$this->_addSql("ALTER TABLE cc_schedule ALTER COLUMN cue_in TYPE interval");
|
||||||
$this->_addSql("ALTER TABLE cc_schedule ALTER COLUMN cue_out TYPE interval DEFAULT '00:00:00'");
|
$this->_addSql("ALTER TABLE cc_schedule ALTER COLUMN cue_in SET DEFAULT '00:00:00'");
|
||||||
$this->_addSql("ALTER TABLE cc_schedule ALTER COLUMN clip_length TYPE interval DEFAULT '00:00:00'");
|
$this->_addSql("ALTER TABLE cc_schedule ALTER COLUMN cue_out TYPE interval");
|
||||||
|
$this->_addSql("ALTER TABLE cc_schedule ALTER COLUMN cue_out SET DEFAULT '00:00:00'");
|
||||||
|
$this->_addSql("ALTER TABLE cc_schedule ALTER COLUMN clip_length TYPE interval");
|
||||||
|
$this->_addSql("ALTER TABLE cc_schedule ALTER COLUMN clip_length SET DEFAULT '00:00:00'");
|
||||||
|
|
||||||
$this->_addSql("ALTER TABLE cc_show_instances ALTER COLUMN time_filled TYPE interval DEFAULT '00:00:00'");
|
$this->_addSql("ALTER TABLE cc_show_instances ALTER COLUMN time_filled TYPE interval");
|
||||||
|
$this->_addSql("ALTER TABLE cc_show_instances ALTER COLUMN time_filled set DEFAULT '00:00:00'");
|
||||||
|
|
||||||
//remove old columns from cc_schedule that deal with groups or playlists.
|
//remove old columns from cc_schedule that deal with groups or playlists.
|
||||||
$this->_addSql("ALTER TABLE cc_schedule DROP COLUMN group_id");
|
$this->_addSql("ALTER TABLE cc_schedule DROP COLUMN group_id");
|
||||||
|
|
|
@ -15,6 +15,8 @@ class Version20120411174904 extends AbstractMigration
|
||||||
$this->_addSql("ALTER TABLE cc_show_instances ADD created timestamp");
|
$this->_addSql("ALTER TABLE cc_show_instances ADD created timestamp");
|
||||||
$this->_addSql("ALTER TABLE cc_show_instances ALTER COLUMN created SET NOT NULL");
|
$this->_addSql("ALTER TABLE cc_show_instances ALTER COLUMN created SET NOT NULL");
|
||||||
|
|
||||||
|
$this->_addSql("ALTER TABLE cc_show_instances ADD last_scheduled timestamp");
|
||||||
|
|
||||||
//setting these to a default now for timeline refresh purposes.
|
//setting these to a default now for timeline refresh purposes.
|
||||||
$now = gmdate("Y-m-d H:i:s");
|
$now = gmdate("Y-m-d H:i:s");
|
||||||
$this->_addSql("UPDATE cc_show_instances SET created = '$now'");
|
$this->_addSql("UPDATE cc_show_instances SET created = '$now'");
|
||||||
|
|
Loading…
Reference in New Issue