CC-4661: Listener Statistics
-factor out mountname into it's own table
This commit is contained in:
parent
a93b588a09
commit
080c3ec944
7 changed files with 634 additions and 88 deletions
|
@ -40,8 +40,8 @@ class CcListenerCountTableMap extends TableMap {
|
|||
// columns
|
||||
$this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null);
|
||||
$this->addForeignKey('TIMESTAMP_ID', 'DbTimestampId', 'INTEGER', 'cc_timestamp', 'ID', true, null, null);
|
||||
$this->addForeignKey('MOUNT_NAME_ID', 'DbMountNameId', 'INTEGER', 'cc_mount_name', 'ID', true, null, null);
|
||||
$this->addColumn('LISTENER_COUNT', 'DbListenerCount', 'INTEGER', true, null, null);
|
||||
$this->addColumn('MOUNT_NAME', 'DbMountName', 'VARCHAR', true, 255, null);
|
||||
// validators
|
||||
} // initialize()
|
||||
|
||||
|
@ -51,6 +51,7 @@ class CcListenerCountTableMap extends TableMap {
|
|||
public function buildRelations()
|
||||
{
|
||||
$this->addRelation('CcTimestamp', 'CcTimestamp', RelationMap::MANY_TO_ONE, array('timestamp_id' => 'id', ), 'CASCADE', null);
|
||||
$this->addRelation('CcTimestamp', 'CcTimestamp', RelationMap::MANY_TO_ONE, array('mount_name_id' => 'id', ), 'CASCADE', null);
|
||||
} // buildRelations()
|
||||
|
||||
} // CcListenerCountTableMap
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue