Example #1
0
 public function getTableSchema()
 {
     $table = parent::getTableSchema();
     $table->columns['are_postcode']->isForeignKey = true;
     $table->foreignKeys['are_postcode'] = array('LinkOfficeToPostcode', 'postcode');
     return $table;
 }
Example #2
0
 public function getTableSchema()
 {
     $res = parent::getTableSchema();
     $res->primaryKey = 'ip';
     return $res;
 }