CC-430: Audio normalization (Replaygain Support)
-change default database value to null
This commit is contained in:
parent
3e24b71436
commit
312f35ae48
4 changed files with 4 additions and 12 deletions
|
@ -101,7 +101,7 @@ class CcFilesTableMap extends TableMap {
|
|||
$this->addColumn('SOUNDCLOUD_ERROR_MSG', 'DbSoundcloudErrorMsg', 'VARCHAR', false, 512, null);
|
||||
$this->addColumn('SOUNDCLOUD_LINK_TO_FILE', 'DbSoundcloudLinkToFile', 'VARCHAR', false, 4096, null);
|
||||
$this->addColumn('SOUNDCLOUD_UPLOAD_TIME', 'DbSoundCloundUploadTime', 'TIMESTAMP', false, 6, null);
|
||||
$this->addColumn('REPLAY_GAIN', 'DbReplayGain', 'VARCHAR', false, 16, '0');
|
||||
$this->addColumn('REPLAY_GAIN', 'DbReplayGain', 'VARCHAR', false, 16, null);
|
||||
// validators
|
||||
} // initialize()
|
||||
|
||||
|
|
|
@ -412,7 +412,6 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
|||
|
||||
/**
|
||||
* The value for the replay_gain field.
|
||||
* Note: this column has a database default value of: '0'
|
||||
* @var string
|
||||
*/
|
||||
protected $replay_gain;
|
||||
|
@ -472,7 +471,6 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
|||
$this->currentlyaccessing = 0;
|
||||
$this->length = '00:00:00';
|
||||
$this->file_exists = true;
|
||||
$this->replay_gain = '0';
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2613,7 +2611,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
|||
$v = (string) $v;
|
||||
}
|
||||
|
||||
if ($this->replay_gain !== $v || $this->isNew()) {
|
||||
if ($this->replay_gain !== $v) {
|
||||
$this->replay_gain = $v;
|
||||
$this->modifiedColumns[] = CcFilesPeer::REPLAY_GAIN;
|
||||
}
|
||||
|
@ -2663,10 +2661,6 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
|||
return false;
|
||||
}
|
||||
|
||||
if ($this->replay_gain !== '0') {
|
||||
return false;
|
||||
}
|
||||
|
||||
// otherwise, everything was equal, so return TRUE
|
||||
return true;
|
||||
} // hasOnlyDefaultValues()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue