diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-03-14 17:45:55 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-03-14 17:45:55 +0000 |
commit | 193ba01e1fbdc525249f8c7ec0592831e1b7ffe2 (patch) | |
tree | 5b82dc0766cd3d558fc53f541816fab928d1c650 /modules/simpletest/tests/database_test.install | |
parent | 38969b48ffd65d8bbf2b7c6722288c5341d7a4f6 (diff) | |
download | brdo-193ba01e1fbdc525249f8c7ec0592831e1b7ffe2.tar.gz brdo-193ba01e1fbdc525249f8c7ec0592831e1b7ffe2.tar.bz2 |
#343999 by Crell, chx, and Alexander Pas: Add facility for doing NULL / NOT NULL conditions to DBTNG.
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; } |