renamed text to string since text did not work in tests
This commit is contained in:
parent
a7c24a05f5
commit
26e3e7a998
@ -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'
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user