From ba29dbde381b8fb43f7f5ff6266ea74e119862de Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 20 May 2009 09:48:47 +0000 Subject: - Patch #415044 by bjaspan, yched: indexes for field storage. --- modules/simpletest/tests/field_test.module | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'modules/simpletest') diff --git a/modules/simpletest/tests/field_test.module b/modules/simpletest/tests/field_test.module index 961b62f4c..7a3b544c6 100644 --- a/modules/simpletest/tests/field_test.module +++ b/modules/simpletest/tests/field_test.module @@ -348,15 +348,21 @@ function field_test_field_info() { } /** - * Implementation of hook_field_columns(). + * Implementation of hook_field_schema(). */ -function field_test_field_columns($field) { - $columns['value'] = array( - 'type' => 'int', - 'size' => 'tiny', - 'not null' => FALSE, +function field_test_field_schema($field) { + return array( + 'columns' => array( + 'value' => array( + 'type' => 'int', + 'size' => 'tiny', + 'not null' => FALSE, + ), + ), + 'indexes' => array( + 'value' => array('value'), + ), ); - return $columns; } /** -- cgit v1.2.3