Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
72e09d7b
Commit
72e09d7b
authored
Oct 08, 2008
by
Dries
Browse files
- Patch
#318593
by hswong3i: clean up of tabs.
parent
d9e7191f
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/simpletest/tests/database_test.install
View file @
72e09d7b
...
...
@@ -13,10 +13,10 @@ function database_test_schema() {
$schema
[
'test'
]
=
array
(
'description'
=>
'Basic test table for the database unit tests.'
,
'fields'
=>
array
(
'id'
=>
array
(
'type'
=>
'serial'
,
'unsigned'
=>
TRUE
,
'not null'
=>
TRUE
,
'id'
=>
array
(
'type'
=>
'serial'
,
'unsigned'
=>
TRUE
,
'not null'
=>
TRUE
,
),
'name'
=>
array
(
'description'
=>
"A person's name"
,
...
...
@@ -25,13 +25,13 @@ function database_test_schema() {
'not null'
=>
TRUE
,
'default'
=>
''
,
),
'age'
=>
array
(
'age'
=>
array
(
'description'
=>
"The person's age"
,
'type'
=>
'int'
,
'unsigned'
=>
TRUE
,
'unsigned'
=>
TRUE
,
'not null'
=>
TRUE
,
'default'
=>
0
),
'job'
=>
array
(
'job'
=>
array
(
'description'
=>
"The person's job"
,
'type'
=>
'varchar'
,
'length'
=>
255
,
...
...
@@ -41,10 +41,10 @@ function database_test_schema() {
),
'primary key'
=>
array
(
'id'
),
'unique keys'
=>
array
(
'name'
=>
array
(
'name'
)
'name'
=>
array
(
'name'
)
),
'indexes'
=>
array
(
'ages'
=>
array
(
'age'
),
'ages'
=>
array
(
'age'
),
),
);
...
...
@@ -60,14 +60,14 @@ function database_test_schema() {
'not null'
=>
TRUE
,
'default'
=>
''
,
),
'age'
=>
array
(
'age'
=>
array
(
'description'
=>
"The person's age"
,
'type'
=>
'int'
,
'unsigned'
=>
TRUE
,
'not null'
=>
TRUE
,
'default'
=>
0
,
),
'job'
=>
array
(
'job'
=>
array
(
'description'
=>
"The person's job"
,
'type'
=>
'varchar'
,
'length'
=>
255
,
...
...
@@ -77,12 +77,12 @@ function database_test_schema() {
),
'primary key'
=>
array
(
'job'
),
'indexes'
=>
array
(
'ages'
=>
array
(
'age'
),
'ages'
=>
array
(
'age'
),
),
);
$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
(
'id'
=>
array
(
'description'
=>
'Simple unique ID.'
,
...
...
@@ -125,7 +125,7 @@ function database_test_schema() {
'type'
=>
'serial'
,
'not null'
=>
TRUE
,
),
'pid'
=>
array
(
'pid'
=>
array
(
'description'
=>
'The {test_people}.pid, foreign key for the test table.'
,
'type'
=>
'int'
,
'unsigned'
=>
TRUE
,
...
...
@@ -139,7 +139,7 @@ function database_test_schema() {
'not null'
=>
TRUE
,
'default'
=>
''
,
),
'priority'
=>
array
(
'priority'
=>
array
(
'description'
=>
'The priority of the task.'
,
'type'
=>
'int'
,
'unsigned'
=>
TRUE
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment