1
0
mirror of synced 2025-01-18 06:21:40 +03:00

renamed text to string since text did not work in tests

This commit is contained in:
meus 2007-09-08 14:21:16 +00:00
parent a7c24a05f5
commit 26e3e7a998

View File

@ -27,7 +27,7 @@ $definition = array (
'default' => 0,
),
'name' => array (
'type' => 'text',
'type' => 'string',
'length' => 255
),
'datetime' => array (
@ -41,7 +41,7 @@ $conn->export->createTable('events', $definition);
The keys of the definition array are the names of the fields in the table. The values are arrays containing the required key 'type' as well as other keys, depending on the value of 'type'. The values for the 'type' key are the same as the possible Doctrine datatypes. Depending on the datatype, the other options may vary.
||~ Datatype ||~ length ||~ default ||~ not null ||~ unsigned ||~ autoincrement ||
|| text || x || x || x || || ||
|| strin || x || x || x || || ||
|| boolean || || x || x || || ||
|| integer || x || x || x || x || x ||
|| decimal || || x || x || || ||
@ -69,7 +69,7 @@ $definition = array (
'default' => 0,
),
'name' => array (
'type' => 'text',
'type' => 'string',
'length' => 255
)
);
@ -183,7 +183,7 @@ $a = array('name' => 'userlist',
'name' => array(
'length' => '20',
'definition' => array(
'type' => 'text',
'type' => 'string',
'length' => 20
)
)
@ -192,7 +192,7 @@ $a = array('name' => 'userlist',
'sex' => array(
'name' => 'gender',
'definition' => array(
'type' => 'text',
'type' => 'string',
'length' => 1,
'default' => 'M'
)