diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-12-23 07:48:24 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-12-23 07:48:24 +0000 |
commit | 1c0f4ac3aa513701837cfbc3829d3eb242dcc525 (patch) | |
tree | bb2d197be74bfb4a1ae43a2112e4a8fb68f45f77 /modules/simpletest/tests/database_test.install | |
parent | 6303ecb8c813f8e52efeeafd943b8b23679140d9 (diff) | |
download | brdo-1c0f4ac3aa513701837cfbc3829d3eb242dcc525.tar.gz brdo-1c0f4ac3aa513701837cfbc3829d3eb242dcc525.tar.bz2 |
- Patch #344575 by cdale et al: force MySQL to run in ANSI compatibility mode. Comes with tests.
Diffstat (limited to 'modules/simpletest/tests/database_test.install')
-rw-r--r-- | modules/simpletest/tests/database_test.install | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/simpletest/tests/database_test.install b/modules/simpletest/tests/database_test.install index 655dde972..bc1dce2b4 100644 --- a/modules/simpletest/tests/database_test.install +++ b/modules/simpletest/tests/database_test.install @@ -150,6 +150,22 @@ function database_test_schema() { 'primary key' => array('tid'), ); + $schema['test_date'] = array( + 'description' => 'A simple table including a datetime field for testing datetime behavior.', + 'fields' => array( + 'id' => array( + 'description' => 'Simple unique ID.', + 'type' => 'serial', + 'not null' => TRUE, + ), + 'dummy_date' => array( + 'description' => 'A dummy datetime field.', + 'type' => 'datetime', + ), + ), + 'primary key' => array('id'), + ); + return $schema; } |