createTable('self_reference', array ( 'id' => array ( 'primary' => true, 'autoincrement' => true, 'type' => 'integer', 'length' => 11, ), 'name' => array ( 'type' => 'string', 'length' => 255, ), 'user_id1' => array ( 'type' => 'integer', 'length' => 11, ), 'user_id2' => array ( 'type' => 'integer', 'length' => 11, ), 'parent_self_reference_id' => array ( 'type' => 'integer', 'length' => 11, ), 'parent_self_reference_id2' => array ( 'type' => 'integer', 'length' => 11, ), ), array ( 'indexes' => array ( ), 'primary' => array ( 0 => 'id', ), )); } public function down() { $this->dropTable('self_reference'); } }