- Patch #318593 by hswong3i: clean up of tabs.

merge-requests/26/head
Dries Buytaert 2008-10-08 18:34:30 +00:00
parent d9e7191f22
commit 72e09d7beb
1 changed files with 15 additions and 15 deletions

View File

@ -13,10 +13,10 @@ function database_test_schema() {
$schema['test'] = array( $schema['test'] = array(
'description' => 'Basic test table for the database unit tests.', 'description' => 'Basic test table for the database unit tests.',
'fields' => array( 'fields' => array(
'id' => array( 'id' => array(
'type' => 'serial', 'type' => 'serial',
'unsigned' => TRUE, 'unsigned' => TRUE,
'not null' => TRUE, 'not null' => TRUE,
), ),
'name' => array( 'name' => array(
'description' => "A person's name", 'description' => "A person's name",
@ -25,13 +25,13 @@ function database_test_schema() {
'not null' => TRUE, 'not null' => TRUE,
'default' => '', 'default' => '',
), ),
'age' => array( 'age' => array(
'description' => "The person's age", 'description' => "The person's age",
'type' => 'int', 'type' => 'int',
'unsigned' => TRUE, 'unsigned' => TRUE,
'not null' => TRUE, 'not null' => TRUE,
'default' => 0), 'default' => 0),
'job' => array( 'job' => array(
'description' => "The person's job", 'description' => "The person's job",
'type' => 'varchar', 'type' => 'varchar',
'length' => 255, 'length' => 255,
@ -41,10 +41,10 @@ function database_test_schema() {
), ),
'primary key' => array('id'), 'primary key' => array('id'),
'unique keys' => array( 'unique keys' => array(
'name' => array('name') 'name' => array('name')
), ),
'indexes' => array( 'indexes' => array(
'ages' => array('age'), 'ages' => array('age'),
), ),
); );
@ -60,14 +60,14 @@ function database_test_schema() {
'not null' => TRUE, 'not null' => TRUE,
'default' => '', 'default' => '',
), ),
'age' => array( 'age' => array(
'description' => "The person's age", 'description' => "The person's age",
'type' => 'int', 'type' => 'int',
'unsigned' => TRUE, 'unsigned' => TRUE,
'not null' => TRUE, 'not null' => TRUE,
'default' => 0, 'default' => 0,
), ),
'job' => array( 'job' => array(
'description' => "The person's job", 'description' => "The person's job",
'type' => 'varchar', 'type' => 'varchar',
'length' => 255, 'length' => 255,
@ -77,12 +77,12 @@ function database_test_schema() {
), ),
'primary key' => array('job'), 'primary key' => array('job'),
'indexes' => array( 'indexes' => array(
'ages' => array('age'), 'ages' => array('age'),
), ),
); );
$schema['test_one_blob'] = array( $schema['test_one_blob'] = array(
'description' => 'A simple table including a BLOB field for testing BLOB behavior.', 'description' => 'A simple table including a BLOB field for testing BLOB behavior.',
'fields' => array( 'fields' => array(
'id' => array( 'id' => array(
'description' => 'Simple unique ID.', 'description' => 'Simple unique ID.',
@ -125,7 +125,7 @@ function database_test_schema() {
'type' => 'serial', 'type' => 'serial',
'not null' => TRUE, 'not null' => TRUE,
), ),
'pid' => array( 'pid' => array(
'description' => 'The {test_people}.pid, foreign key for the test table.', 'description' => 'The {test_people}.pid, foreign key for the test table.',
'type' => 'int', 'type' => 'int',
'unsigned' => TRUE, 'unsigned' => TRUE,
@ -139,7 +139,7 @@ function database_test_schema() {
'not null' => TRUE, 'not null' => TRUE,
'default' => '', 'default' => '',
), ),
'priority' => array( 'priority' => array(
'description' => 'The priority of the task.', 'description' => 'The priority of the task.',
'type' => 'int', 'type' => 'int',
'unsigned' => TRUE, 'unsigned' => TRUE,