diff options
Diffstat (limited to 'modules/simpletest/tests/database_test.install')
-rw-r--r-- | modules/simpletest/tests/database_test.install | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/modules/simpletest/tests/database_test.install b/modules/simpletest/tests/database_test.install index bc1dce2b4..0a51d57fd 100644 --- a/modules/simpletest/tests/database_test.install +++ b/modules/simpletest/tests/database_test.install @@ -166,6 +166,37 @@ function database_test_schema() { 'primary key' => array('id'), ); + $schema['test_null'] = array( + 'description' => 'Basic test table for NULL value handling.', + 'fields' => array( + 'id' => array( + 'type' => 'serial', + 'unsigned' => TRUE, + 'not null' => TRUE, + ), + 'name' => array( + 'description' => "A person's name.", + 'type' => 'varchar', + 'length' => 255, + 'not null' => FALSE, + 'default' => '', + ), + 'age' => array( + 'description' => "The person's age.", + 'type' => 'int', + 'unsigned' => TRUE, + 'not null' => FALSE, + 'default' => 0), + ), + 'primary key' => array('id'), + 'unique keys' => array( + 'name' => array('name') + ), + 'indexes' => array( + 'ages' => array('age'), + ), + ); + return $schema; } |