예제 #1
0
 protected function schemaDefinition()
 {
     $schema = parent::schemaDefinition();
     $schema['views_test_data']['fields']['description'] = array('description' => "A person's description", 'type' => 'text', 'not null' => FALSE, 'size' => 'big');
     return $schema;
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 public function schemaDefinition()
 {
     $schema = parent::schemaDefinition();
     $schema['views_test_data']['fields']['destroyed'] = array('description' => "The destruction date of this record", 'type' => 'int', 'unsigned' => TRUE, 'not null' => FALSE, 'default' => 0);
     return $schema;
 }
예제 #3
0
 /**
  * {@inheritdoc}
  */
 protected function schemaDefinition()
 {
     $schema = parent::schemaDefinition();
     $schema['views_test_data']['fields']['langcode'] = array('description' => 'The {language}.langcode of this beatle.', 'type' => 'varchar', 'length' => 12, 'default' => '');
     return $schema;
 }
 /**
  * {@inheritdoc}
  */
 protected function schemaDefinition()
 {
     $schema = parent::schemaDefinition();
     $schema['views_test_data']['fields']['status'] = array('description' => 'The status of this record', 'type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => '');
     return $schema;
 }
예제 #5
0
 /**
  * Allow {views_test_data}.job to be NULL.
  */
 protected function schemaDefinition()
 {
     $schema = parent::schemaDefinition();
     unset($schema['views_test_data']['fields']['job']['not null']);
     return $schema;
 }