From 1c0f4ac3aa513701837cfbc3829d3eb242dcc525 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 23 Dec 2008 07:48:24 +0000 Subject: - Patch #344575 by cdale et al: force MySQL to run in ANSI compatibility mode. Comes with tests. --- modules/simpletest/tests/database_test.install | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'modules/simpletest/tests/database_test.install') 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; } -- cgit v1.2.3