Modified schema.xml - made cue_in and cue_out required columns in cc_scheuled and removed default values
This commit is contained in:
parent
b5eededd05
commit
23c29455d9
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
// This file generated by Propel 1.5.2 convert-conf target
|
||||
// from XML runtime conf file /home/rudi/reps/Airtime/airtime_mvc/build/runtime-conf.xml
|
||||
// from XML runtime conf file /home/denise/airtime/airtime_mvc/build/runtime-conf.xml
|
||||
$conf = array (
|
||||
'datasources' =>
|
||||
array (
|
||||
|
|
|
@ -46,8 +46,8 @@ class CcScheduleTableMap extends TableMap {
|
|||
$this->addColumn('CLIP_LENGTH', 'DbClipLength', 'VARCHAR', false, null, '00:00:00');
|
||||
$this->addColumn('FADE_IN', 'DbFadeIn', 'TIME', false, null, '00:00:00');
|
||||
$this->addColumn('FADE_OUT', 'DbFadeOut', 'TIME', false, null, '00:00:00');
|
||||
$this->addColumn('CUE_IN', 'DbCueIn', 'VARCHAR', false, null, '00:00:00');
|
||||
$this->addColumn('CUE_OUT', 'DbCueOut', 'VARCHAR', false, null, '00:00:00');
|
||||
$this->addColumn('CUE_IN', 'DbCueIn', 'VARCHAR', true, null, null);
|
||||
$this->addColumn('CUE_OUT', 'DbCueOut', 'VARCHAR', true, null, null);
|
||||
$this->addColumn('MEDIA_ITEM_PLAYED', 'DbMediaItemPlayed', 'BOOLEAN', false, null, false);
|
||||
$this->addForeignKey('INSTANCE_ID', 'DbInstanceId', 'INTEGER', 'cc_show_instances', 'ID', true, null, null);
|
||||
$this->addColumn('PLAYOUT_STATUS', 'DbPlayoutStatus', 'SMALLINT', true, null, 1);
|
||||
|
|
|
@ -77,14 +77,12 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
|
|||
|
||||
/**
|
||||
* The value for the cue_in field.
|
||||
* Note: this column has a database default value of: '00:00:00'
|
||||
* @var string
|
||||
*/
|
||||
protected $cue_in;
|
||||
|
||||
/**
|
||||
* The value for the cue_out field.
|
||||
* Note: this column has a database default value of: '00:00:00'
|
||||
* @var string
|
||||
*/
|
||||
protected $cue_out;
|
||||
|
@ -161,8 +159,6 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
|
|||
$this->clip_length = '00:00:00';
|
||||
$this->fade_in = '00:00:00';
|
||||
$this->fade_out = '00:00:00';
|
||||
$this->cue_in = '00:00:00';
|
||||
$this->cue_out = '00:00:00';
|
||||
$this->media_item_played = false;
|
||||
$this->playout_status = 1;
|
||||
$this->broadcasted = 0;
|
||||
|
@ -708,7 +704,7 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
|
|||
$v = (string) $v;
|
||||
}
|
||||
|
||||
if ($this->cue_in !== $v || $this->isNew()) {
|
||||
if ($this->cue_in !== $v) {
|
||||
$this->cue_in = $v;
|
||||
$this->modifiedColumns[] = CcSchedulePeer::CUE_IN;
|
||||
}
|
||||
|
@ -728,7 +724,7 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
|
|||
$v = (string) $v;
|
||||
}
|
||||
|
||||
if ($this->cue_out !== $v || $this->isNew()) {
|
||||
if ($this->cue_out !== $v) {
|
||||
$this->cue_out = $v;
|
||||
$this->modifiedColumns[] = CcSchedulePeer::CUE_OUT;
|
||||
}
|
||||
|
@ -842,14 +838,6 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
|
|||
return false;
|
||||
}
|
||||
|
||||
if ($this->cue_in !== '00:00:00') {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($this->cue_out !== '00:00:00') {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($this->media_item_played !== false) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#Note: project.home is automatically generated by the propel-install script.
|
||||
#Any manual changes to this value will be overwritten.
|
||||
project.home = /home/rudi/reps/Airtime/airtime_mvc
|
||||
project.home = /home/denise/airtime/airtime_mvc
|
||||
project.build = ${project.home}/build
|
||||
|
||||
#Database driver
|
||||
|
|
|
@ -314,8 +314,8 @@
|
|||
<column name="clip_length" phpName="DbClipLength" type="VARCHAR" sqlType="interval" required="false" defaultValue="00:00:00"/>
|
||||
<column name="fade_in" phpName="DbFadeIn" type="TIME" required="false" defaultValue="00:00:00"/>
|
||||
<column name="fade_out" phpName="DbFadeOut" type="TIME" required="false" defaultValue="00:00:00"/>
|
||||
<column name="cue_in" phpName="DbCueIn" type="VARCHAR" sqlType="interval" required="false" defaultValue="00:00:00"/>
|
||||
<column name="cue_out" phpName="DbCueOut" type="VARCHAR" sqlType="interval" required="false" defaultValue="00:00:00"/>
|
||||
<column name="cue_in" phpName="DbCueIn" type="VARCHAR" sqlType="interval" required="true"/>
|
||||
<column name="cue_out" phpName="DbCueOut" type="VARCHAR" sqlType="interval" required="true"/>
|
||||
<column name="media_item_played" phpName="DbMediaItemPlayed" type="BOOLEAN" required="false" defaultValue="0"/>
|
||||
<column name="instance_id" phpName="DbInstanceId" type="INTEGER" required="true"/>
|
||||
<column name="playout_status" phpName="DbPlayoutStatus" type="SMALLINT" required="true" defaultValue="1"/>
|
||||
|
|
|
@ -418,8 +418,8 @@ CREATE TABLE "cc_schedule"
|
|||
"clip_length" interval default '00:00:00',
|
||||
"fade_in" TIME default '00:00:00',
|
||||
"fade_out" TIME default '00:00:00',
|
||||
"cue_in" interval default '00:00:00',
|
||||
"cue_out" interval default '00:00:00',
|
||||
"cue_in" interval NOT NULL,
|
||||
"cue_out" interval NOT NULL,
|
||||
"media_item_played" BOOLEAN default 'f',
|
||||
"instance_id" INTEGER NOT NULL,
|
||||
"playout_status" INT2 default 1 NOT NULL,
|
||||
|
|
|
@ -17,6 +17,8 @@ UPDATE cc_files SET filepath = substring(filepath from 2) where id in (select id
|
|||
|
||||
UPDATE cc_files SET cueout = length where cueout = '00:00:00';
|
||||
|
||||
UPDATE cc_schedule SET cue_out = clip_length WHERE cue_out = '00:00:00';
|
||||
|
||||
INSERT INTO cc_pref("keystr", "valstr") VALUES('locale', 'en_CA');
|
||||
|
||||
INSERT INTO cc_pref("subjid", "keystr", "valstr") VALUES(1, 'user_locale', 'en_CA');
|
||||
|
|
Loading…
Reference in New Issue